diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-01-17 14:06:53 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-01-17 14:27:25 +0100 |
commit | c03bd6049a635ae42c0ca2cc3bc88fc1f489b477 (patch) | |
tree | 9dc136410b1fcbdaa255c7fc79202cd36794c04c /test/audiocachefiletest.cc | |
parent | b328df4dea35d4d4c1713bd3fb6bda48d30b9e1b (diff) |
Make DrumkitCreator clean up the created files in the destructor.
Diffstat (limited to 'test/audiocachefiletest.cc')
-rw-r--r-- | test/audiocachefiletest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/audiocachefiletest.cc b/test/audiocachefiletest.cc index 7ae2f95..83aece8 100644 --- a/test/audiocachefiletest.cc +++ b/test/audiocachefiletest.cc @@ -61,6 +61,8 @@ class AudioCacheFileTest CPPUNIT_TEST(noFileTest); CPPUNIT_TEST_SUITE_END(); + DrumkitCreator drumkit_creator; + public: void setUp() {} void tearDown() {} @@ -68,7 +70,7 @@ public: void refTest() { // Create the audio file - auto filename = drumkit_creator::createSingleChannelWav("single_channel.wav"); + auto filename = drumkit_creator.createSingleChannelWav("single_channel.wav"); // Conduct tests TestableAudioCacheFiles audiofiles; @@ -92,7 +94,7 @@ public: printf("Test buffer size: %d samples\n", (int)buffer_size); // Create the audio file - auto filename = drumkit_creator::createMultiChannelWav("multi_channel.wav"); + auto filename = drumkit_creator.createMultiChannelWav("multi_channel.wav"); // Conduct tests AudioFile* ref_file[13]; |