Explorar o código

tests: Fix FunctionWrapper test

Ole %!s(int64=9) %!d(string=hai) anos
pai
achega
26ab6d21e3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      tests/functions.cpp

+ 1 - 0
tests/functions.cpp

@@ -48,6 +48,7 @@ TEST_CASE("FunctionWrapper") {
 		// Test function beforehand
 		test_function_noret(13, 37);
 		int req_environemt = noret_environment;
+		noret_environment = 0;
 
 		// Wrap function
 		lua_CFunction cfun = LUWRA_WRAP(test_function_noret);