Fix up tests now that operator= on ScopedConnection disconnects the old connection...
authorCarl Hetherington <carl@carlh.net>
Wed, 23 May 2012 16:22:51 +0000 (16:22 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 23 May 2012 16:22:51 +0000 (16:22 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12395 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/pbd/test/signals_test.cc

index 9dd4a7f007f784e2a517baba32c0eba9981792a5..4b425590ad7319dc916e6884e9e75ad64acf2262 100644 (file)
@@ -42,7 +42,8 @@ SignalsTest::testEmission ()
        e->emit ();
        CPPUNIT_ASSERT_EQUAL (2, N);
 
-       e->Fred.connect_same_thread (c, boost::bind (&receiver));
+       PBD::ScopedConnection d;
+       e->Fred.connect_same_thread (d, boost::bind (&receiver));
        N = 0;
        e->emit ();
        CPPUNIT_ASSERT_EQUAL (2, N);
@@ -69,7 +70,6 @@ public:
        }
 
        void receiver () {
-               cout << "Receiver::receiver\n";
                ++N;
        }
 };