From: Gunnar Beutner Date: Thu, 11 Dec 2014 12:25:06 +0000 (+0100) Subject: Fix unit tests X-Git-Tag: v2.3.0~523 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5324b99fd03b55892613fbc4fc3f3f6e862f6d9a;p=icinga2 Fix unit tests refs #7883 --- diff --git a/test/config-ops.cpp b/test/config-ops.cpp index e7d88e2c8..458ae1b15 100644 --- a/test/config-ops.cpp +++ b/test/config-ops.cpp @@ -239,11 +239,11 @@ BOOST_AUTO_TEST_CASE(advanced) expr = ConfigCompiler::CompileText("", "a = 3 b = 3"); BOOST_CHECK_THROW(expr->Evaluate(frame), ScriptError); - expr = ConfigCompiler::CompileText("", "__function() { 3 }()"); + expr = ConfigCompiler::CompileText("", "function() { 3 }()"); BOOST_CHECK(expr->Evaluate(frame) == 3); delete expr; - expr = ConfigCompiler::CompileText("", "__function() { __return 3, 5 }()"); + expr = ConfigCompiler::CompileText("", "function() { return 3, 5 }()"); BOOST_CHECK(expr->Evaluate(frame) == 3); delete expr;