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/memcheckertest.cc | |
parent | b328df4dea35d4d4c1713bd3fb6bda48d30b9e1b (diff) |
Make DrumkitCreator clean up the created files in the destructor.
Diffstat (limited to 'test/memcheckertest.cc')
-rw-r--r-- | test/memcheckertest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/memcheckertest.cc b/test/memcheckertest.cc index 125ff6c..da5eae6 100644 --- a/test/memcheckertest.cc +++ b/test/memcheckertest.cc @@ -57,10 +57,11 @@ private: Settings settings; DrumKit kit; Random random; + DrumkitCreator drumkit_creator; - const std::string small_kit_path = drumkit_creator::createSmallKit("small_kit"); - const std::string huge_kit_path = drumkit_creator::createHugeKit("huge_kit"); - const std::string audiofile = drumkit_creator::createMultiChannelWav("multi_channel.wav"); + const std::string small_kit_path = drumkit_creator.createSmallKit("small_kit"); + const std::string huge_kit_path = drumkit_creator.createHugeKit("huge_kit"); + const std::string audiofile = drumkit_creator.createMultiChannelWav("multi_channel.wav"); public: void setUp() { |