From 07415bae4e84a4c9316249f14c26c695c5dcadaa Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 22 May 2016 15:40:36 +0200 Subject: Fix memchecker unit test compilation. --- test/memcheckertest.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/memcheckertest.cc b/test/memcheckertest.cc index e312ca7..e685361 100644 --- a/test/memcheckertest.cc +++ b/test/memcheckertest.cc @@ -54,6 +54,7 @@ class MemCheckerTest private: Settings settings; DrumKit kit; + Random random; const std::string small_kit_path = "kit/small_kit.xml"; const std::string huge_kit_path = "kit/huge_kit.xml"; @@ -71,7 +72,7 @@ public: void small_drumkit() { // load the small kit - DrumKitParser parser(settings, kit); + DrumKitParser parser(settings, kit, random); CPPUNIT_ASSERT(!parser.parseFile(small_kit_path)); // check if the memchecker thinks it fits into memory @@ -81,7 +82,7 @@ public: void huge_drumkit() { // load the huge kit - DrumKitParser parser(settings, kit); + DrumKitParser parser(settings, kit, random); CPPUNIT_ASSERT(!parser.parseFile(huge_kit_path)); // check if the memchecker thinks it doesn't fit into memory @@ -95,7 +96,7 @@ public: CPPUNIT_ASSERT_EQUAL(bytes_per_channel, calcBytesPerChannel(audiofile)); // load the huge kit - DrumKitParser parser(settings, kit); + DrumKitParser parser(settings, kit, random); CPPUNIT_ASSERT(!parser.parseFile(huge_kit_path)); // check if the protected method of the memchecker reports the correct size -- cgit v1.2.3