summaryrefslogtreecommitdiff
path: root/test/resource_test.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/resource_test.cc
parentb328df4dea35d4d4c1713bd3fb6bda48d30b9e1b (diff)
Make DrumkitCreator clean up the created files in the destructor.
Diffstat (limited to 'test/resource_test.cc')
-rw-r--r--test/resource_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/resource_test.cc b/test/resource_test.cc
index c8650a5..d6d9221 100644
--- a/test/resource_test.cc
+++ b/test/resource_test.cc
@@ -49,13 +49,15 @@ class ResourceTest : public CppUnit::TestFixture
CPPUNIT_TEST(internalReadTest);
CPPUNIT_TEST_SUITE_END();
+ DrumkitCreator drumkit_creator;
+
public:
void setUp() {}
void tearDown() {}
void externalReadTest()
{
- auto filename = drumkit_creator::create0000Wav("0000.wav");
+ auto filename = drumkit_creator.create0000Wav("0000.wav");
ResourceTester rc(filename);
CPPUNIT_ASSERT(!rc.probeIsInternal());