Daniele Bartolini 6 лет назад
Родитель
Сommit
092fb75100
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      src/core/unit_tests.cpp

+ 2 - 6
src/core/unit_tests.cpp

@@ -1349,13 +1349,9 @@ static void test_thread()
 	Thread thread;
 	Thread thread;
 	ENSURE(!thread.is_running());
 	ENSURE(!thread.is_running());
 
 
-	thread.start([](void*) { return 0; }, NULL);
+	thread.start([](void*) { return 0xbadc0d3; }, NULL);
 	thread.stop();
 	thread.stop();
-	ENSURE(thread.exit_code() == 0);
-
-	thread.start([](void*) { return -1; }, NULL);
-	thread.stop();
-	ENSURE(thread.exit_code() == -1);
+	ENSURE(thread.exit_code() == 0xbadc0d3);
 }
 }
 
 
 static void test_process()
 static void test_process()