|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50597 - sandbox/thread_safe_signals/trunk/libs/signals2/test
From: fmhess_at_[hidden]
Date: 2009-01-14 15:44:45
Author: fmhess
Date: 2009-01-14 15:44:44 EST (Wed, 14 Jan 2009)
New Revision: 50597
URL: http://svn.boost.org/trac/boost/changeset/50597
Log:
Tweaked a test slightly to test shared_connection_block::unblock()
method.
Text files modified:
sandbox/thread_safe_signals/trunk/libs/signals2/test/deletion_test.cpp | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
Modified: sandbox/thread_safe_signals/trunk/libs/signals2/test/deletion_test.cpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/libs/signals2/test/deletion_test.cpp (original)
+++ sandbox/thread_safe_signals/trunk/libs/signals2/test/deletion_test.cpp 2009-01-14 15:44:44 EST (Wed, 14 Jan 2009)
@@ -116,14 +116,13 @@
test_output = "";
s0(); std::cout << std::endl;
BOOST_CHECK(test_output == "23");
+ std::cout << "Unblocking 1" << std::endl;
+ block.unblock();
+ test_output = "";
+ s0(); std::cout << std::endl;
+ BOOST_CHECK(test_output == "123");
}
- std::cout << "Unblocking 1" << std::endl;
-
- test_output = "";
- s0(); std::cout << std::endl;
- BOOST_CHECK(test_output == "123");
-
s0.disconnect_all_slots();
BOOST_CHECK(s0.empty());
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk