diff --git a/tests.cpp b/tests.cpp index 63f941ce..6ad338bd 100644 --- a/tests.cpp +++ b/tests.cpp @@ -1162,7 +1162,7 @@ TEST_CASE("interop/null-to-nil-and-back", "nil should be the given type when a p "assert(x == nil)")); } -#ifdef SOL_LUAJIT // LuaJIT does not have error message handling support for lua_pcall, and thus this test will always fail +#ifndef SOL_LUAJIT // LuaJIT does not have error message handling support for lua_pcall, and thus this test will always fail TEST_CASE( "functions/function_result-protected_function", "Function result should be the beefy return type for sol::function that allows for error checking and error handlers" ) { sol::state lua; lua.open_libraries( sol::lib::base, sol::lib::debug );