Parcourir la Source

tests: Fix FunctionWrapper test

Ole il y a 9 ans
Parent
commit
26ab6d21e3
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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);