summaryrefslogtreecommitdiff
path: root/test/lv2.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/lv2.cc
parentb328df4dea35d4d4c1713bd3fb6bda48d30b9e1b (diff)
Make DrumkitCreator clean up the created files in the destructor.
Diffstat (limited to 'test/lv2.cc')
-rw-r--r--test/lv2.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/lv2.cc b/test/lv2.cc
index 4ad6d94..78bf342 100644
--- a/test/lv2.cc
+++ b/test/lv2.cc
@@ -62,6 +62,8 @@ class test_lv2 : public CppUnit::TestFixture
CPPUNIT_TEST(test1);
CPPUNIT_TEST_SUITE_END();
+ DrumkitCreator drumkit_creator;
+
public:
void setUp() {}
void tearDown() {}
@@ -110,9 +112,9 @@ public:
"</config>";
// Create drumkit
- auto kit1_file = drumkit_creator::createStdKit("kit1");
+ auto kit1_file = drumkit_creator.createStdKit("kit1");
- auto midimapfile = drumkit_creator::createStdMidimap("midimap");
+ auto midimapfile = drumkit_creator.createStdMidimap("midimap");
bool enable_velocity_modifier = true;
float velocity_modifier_falloff = 0.5;
float velocity_modifier_weight = 0.25;
@@ -177,9 +179,9 @@ public:
"</config>";
// Create drumkit
- auto kit1_file = drumkit_creator::createStdKit("kit1");
+ auto kit1_file = drumkit_creator.createStdKit("kit1");
- auto midimapfile = drumkit_creator::createStdMidimap("midimap");
+ auto midimapfile = drumkit_creator.createStdMidimap("midimap");
bool enable_velocity_modifier = true;
float velocity_modifier_falloff = 0.5;
float velocity_modifier_weight = 0.25;
@@ -256,9 +258,9 @@ public:
"</config>";
// Create drumkit
- auto kit1_file = drumkit_creator::createStdKit("kit1");
+ auto kit1_file = drumkit_creator.createStdKit("kit1");
- auto midimapfile = drumkit_creator::createStdMidimap("midimap");
+ auto midimapfile = drumkit_creator.createStdMidimap("midimap");
bool enable_velocity_modifier = true;
float velocity_modifier_falloff = 0.5;
float velocity_modifier_weight = 0.25;