diff options
author | Carl Hetherington <carl@carlh.net> | 2012-05-23 16:22:51 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-05-23 16:22:51 +0000 |
commit | 99c1aacc236fcba1f297804baf9f5d1b0825e2ee (patch) | |
tree | a9aee35dd79832579781d056fdcabef7351b2677 /libs | |
parent | 4c398b0ad764ea472bb3f2623d60dc55c3d31b1f (diff) |
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
Diffstat (limited to 'libs')
-rw-r--r-- | libs/pbd/test/signals_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; } }; |