summaryrefslogtreecommitdiff
path: root/test/enginetest.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-01-17 14:06:53 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2017-01-17 14:27:25 +0100
commitc03bd6049a635ae42c0ca2cc3bc88fc1f489b477 (patch)
tree9dc136410b1fcbdaa255c7fc79202cd36794c04c /test/enginetest.cc
parentb328df4dea35d4d4c1713bd3fb6bda48d30b9e1b (diff)
Make DrumkitCreator clean up the created files in the destructor.
Diffstat (limited to 'test/enginetest.cc')
-rw-r--r--test/enginetest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/enginetest.cc b/test/enginetest.cc
index 7079bad..5e33fe2 100644
--- a/test/enginetest.cc
+++ b/test/enginetest.cc
@@ -71,6 +71,8 @@ class test_engine : public CppUnit::TestFixture
CPPUNIT_TEST(loading);
CPPUNIT_TEST_SUITE_END();
+ DrumkitCreator drumkit_creator;
+
public:
void setUp() {}
void tearDown() {}
@@ -84,8 +86,8 @@ public:
dg.setFrameSize(100);
// Create drumkits
- auto kit1_file = drumkit_creator::createStdKit("kit1");
- auto kit2_file = drumkit_creator::createStdKit("kit2");
+ auto kit1_file = drumkit_creator.createStdKit("kit1");
+ auto kit2_file = drumkit_creator.createStdKit("kit2");
// Switch kits emmidiately without giving the loader time to work:
for(int i = 0; i < 100; ++i)