소스 검색

tests: Fix FunctionWrapper test

Ole 9 년 전
부모
커밋
26ab6d21e3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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);