Skip to content

Commit

Permalink
fix running mixxx-test directly
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Dec 15, 2024
1 parent 5bcb723 commit 4cc1310
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/test/librarytest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ LibraryTest::LibraryTest()
CoverArtCache::createInstance();
}

LibraryTest::~LibraryTest() {
CoverArtCache::destroy();
}

TrackPointer LibraryTest::getOrAddTrackByLocation(
const QString& trackLocation) const {
return m_pTrackCollectionManager->getOrAddTrack(
Expand Down
2 changes: 1 addition & 1 deletion src/test/librarytest.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class LibraryTest : public MixxxDbTest, SoundSourceProviderRegistration {
protected:
LibraryTest();
~LibraryTest() override = default;
~LibraryTest() override;

TrackCollectionManager* trackCollectionManager() const {
return m_pTrackCollectionManager.get();
Expand Down
1 change: 1 addition & 0 deletions src/test/playermanagertest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class PlayerManagerTest : public MixxxDbTest, SoundSourceProviderRegistration {
m_pEffectsManager.reset();
m_pTrackCollectionManager.reset();
m_pControlIndicatorTimer.reset();
CoverArtCache::destroy();
}

protected:
Expand Down

0 comments on commit 4cc1310

Please sign in to comment.