From 87465ff69b1da6d64cb6e23d288f7a98fa2f1950 Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Sat, 30 Jan 2010 06:56:25 +0100 Subject: [PATCH] little test-helper cosmetics --- src/lib/test/test-helper.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/test/test-helper.hpp b/src/lib/test/test-helper.hpp index afa79c743..5f1cc511c 100644 --- a/src/lib/test/test-helper.hpp +++ b/src/lib/test/test-helper.hpp @@ -129,15 +129,15 @@ namespace test{ * an assertion failure. In case of an exception, the #lumiera_error * state is checked, cleared and verified. */ -#define VERIFY_ERROR(ERROR_ID, ERRONEOUS_STATEMENT) \ - try \ - { \ - ERRONEOUS_STATEMENT ; \ - NOTREACHED(); \ - } \ - catch (...) \ - { \ - ASSERT (lumiera_error () == LUMIERA_ERROR_##ERROR_ID ); \ +#define VERIFY_ERROR(ERROR_ID, ERRONEOUS_STATEMENT) \ + try \ + { \ + ERRONEOUS_STATEMENT ; \ + NOTREACHED("'%s' resisted to fail", #ERRONEOUS_STATEMENT); \ + } \ + catch (...) \ + { \ + CHECK (lumiera_error_expect (LUMIERA_ERROR_##ERROR_ID)); \ } #endif