From d013df06f76552ebff67c6355e631cbc6fcea215 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 28 Nov 2014 07:31:37 +0100 Subject: [PATCH] Fix the Expression unit tests refs #7822 --- test/config-ops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/config-ops.cpp b/test/config-ops.cpp index 388630e2c..9006016a5 100644 --- a/test/config-ops.cpp +++ b/test/config-ops.cpp @@ -237,7 +237,7 @@ BOOST_AUTO_TEST_CASE(advanced) delete expr; expr = ConfigCompiler::CompileText("", "a = 3 b = 3"); - BOOST_CHECK(expr == NULL); + BOOST_CHECK_THROW(expr->Evaluate(frame), ConfigError); expr = ConfigCompiler::CompileText("", "__function() { 3 }()"); BOOST_CHECK(expr->Evaluate(frame) == 3);