[asterisk-scf-commits] asterisk-scf/integration/ice-util-cpp.git branch "ami-collector" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Wed Jan 12 17:36:15 CST 2011
branch "ami-collector" has been updated
via 19eede588a07bdca1b6c93b12c29a57b9626676b (commit)
from 3dc960f2824e3f491443a1ba06abddfeb7c6e2fa (commit)
Summary of changes:
AmiCollector/test/ResponseCollector-test.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 19eede588a07bdca1b6c93b12c29a57b9626676b
Author: David M. Lee <dlee at digium.com>
Date: Wed Jan 12 17:35:46 2011 -0600
Fail test if exception is not passed through.
See CR-ASTSCF-40.
diff --git a/AmiCollector/test/ResponseCollector-test.cpp b/AmiCollector/test/ResponseCollector-test.cpp
index 63f7403..af94552 100644
--- a/AmiCollector/test/ResponseCollector-test.cpp
+++ b/AmiCollector/test/ResponseCollector-test.cpp
@@ -76,7 +76,11 @@ BOOST_AUTO_TEST_CASE(test_one)
BOOST_CHECK_EQUAL(0, uut.results);
BOOST_CHECK_EQUAL(false, uut.complete);
- try { uut.invoke(true); } catch (...) { /* ignore */ }
+ try
+ {
+ uut.invoke(true);
+ BOOST_FAIL("Expected exception to pass through");
+ } catch (const TestException&) { /* ignore */ }
BOOST_CHECK_EQUAL(1, uut.results);
BOOST_CHECK_EQUAL(true, uut.complete);
-----------------------------------------------------------------------
--
asterisk-scf/integration/ice-util-cpp.git
More information about the asterisk-scf-commits
mailing list