ソースを参照

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);