]> granicus.if.org Git - icinga2/commitdiff
Fix unit tests
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 11 Dec 2014 12:25:06 +0000 (13:25 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 11 Dec 2014 12:25:06 +0000 (13:25 +0100)
refs #7883

test/config-ops.cpp

index e7d88e2c8e6303bbac9841ef108431578e1314bc..458ae1b157bc0a3bdc6ba00f122f7bf8e463fb90 100644 (file)
@@ -239,11 +239,11 @@ BOOST_AUTO_TEST_CASE(advanced)
        expr = ConfigCompiler::CompileText("<test>", "a = 3 b = 3");
        BOOST_CHECK_THROW(expr->Evaluate(frame), ScriptError);
 
-       expr = ConfigCompiler::CompileText("<test>", "__function() { 3 }()");
+       expr = ConfigCompiler::CompileText("<test>", "function() { 3 }()");
        BOOST_CHECK(expr->Evaluate(frame) == 3);
        delete expr;
 
-       expr = ConfigCompiler::CompileText("<test>", "__function() { __return 3, 5 }()");
+       expr = ConfigCompiler::CompileText("<test>", "function() { return 3, 5 }()");
        BOOST_CHECK(expr->Evaluate(frame) == 3);
        delete expr;