|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78381 - trunk/libs/local_function/test
From: lorcaminiti_at_[hidden]
Date: 2012-05-08 14:01:59
Author: lcaminiti
Date: 2012-05-08 14:01:59 EDT (Tue, 08 May 2012)
New Revision: 78381
URL: http://svn.boost.org/trac/boost/changeset/78381
Log:
Forcing run-time failure when test is expected to fail.
Text files modified:
trunk/libs/local_function/test/locals_as_tparams.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/libs/local_function/test/locals_as_tparams.cpp
==============================================================================
--- trunk/libs/local_function/test/locals_as_tparams.cpp (original)
+++ trunk/libs/local_function/test/locals_as_tparams.cpp 2012-05-08 14:01:59 EDT (Tue, 08 May 2012)
@@ -17,9 +17,11 @@
#if BOOST_LOCAL_FUNCTION_CONFIG_LOCALS_AS_TPARAMS
# define LOCALS_AS_TPARAMS_TFUNC call_expected_to_pass
# define LOCALS_AS_TPARAMS_TCLASS instantiation_expected_to_pass
+# define LOCALS_AS_TPARAMS_EXIT_CODE 0 // Pass.
#else
# define LOCALS_AS_TPARAMS_TFUNC call_exptected_to_fail
# define LOCALS_AS_TPARAMS_TCLASS instantiation_expected_to_fail
+# define LOCALS_AS_TPARAMS_EXIT_CODE 1 // Fails.
#endif
template<typename T> struct LOCALS_AS_TPARAMS_TCLASS { void use(void) {} };
@@ -29,6 +31,6 @@
struct local_class {} local_obj;
LOCALS_AS_TPARAMS_TCLASS<local_class>().use();
LOCALS_AS_TPARAMS_TFUNC(local_obj);
- return 0;
+ return LOCALS_AS_TPARAMS_EXIT_CODE;
}
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