Add test for Glib::Mutex::trylock
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 13 Jul 2013 21:00:18 +0000 (17:00 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 13 Jul 2013 21:00:18 +0000 (17:00 -0400)
Behaviour of this method is different on WIN32

libs/pbd/test/testrunner.cc
libs/pbd/wscript

index 1512ebd024cc75ffd819dc4521967b891720d5a1..ea8f0aa115a709528ec69c3e371a41774237e274 100644 (file)
@@ -4,11 +4,15 @@
 #include <cppunit/TestResultCollector.h>
 #include <cppunit/TestRunner.h>
 #include <cppunit/BriefTestProgressListener.h>
+#include <glibmm/thread.h>
 #include "scalar_properties.h"
 
+
 int
 main ()
 {
+       Glib::thread_init();
+
        ScalarPropertiesTest::make_property_quarks ();
        
        CppUnit::TestResult testresult;
index 797f6e2cadd60cc120ccfd5897885a95e9386ceb..2f93887e624da004fffe0ddf618c12c5a9cfdefd 100644 (file)
@@ -144,6 +144,7 @@ def build(bld):
         testobj.source       = '''
                 test/testrunner.cc
                 test/xpath.cc
+                test/mutex_test.cc
                 test/scalar_properties.cc
                 test/signals_test.cc
                 test/convert_test.cc