From: Carl Hetherington Date: Wed, 23 May 2012 16:22:51 +0000 (+0000) Subject: Fix up tests now that operator= on ScopedConnection disconnects the old connection... X-Git-Tag: 3.0~1403 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=99c1aacc236fcba1f297804baf9f5d1b0825e2ee;p=ardour.git Fix up tests now that operator= on ScopedConnection disconnects the old connection that it held. git-svn-id: svn://localhost/ardour2/branches/3.0@12395 d708f5d6-7413-0410-9779-e7cbd77b26cf --- diff --git a/libs/pbd/test/signals_test.cc b/libs/pbd/test/signals_test.cc index 9dd4a7f007..4b425590ad 100644 --- a/libs/pbd/test/signals_test.cc +++ b/libs/pbd/test/signals_test.cc @@ -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; } };