crt: test: Do not return from t_tls_dll_native_process_detach test on non-success Test's PE TLS callback changes exit code to 0. So use TerminateProcess() on non-success. Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/testcases/t_tls_dll_native_process_detach.c b/mingw-w64-crt/testcases/t_tls_dll_native_process_detach.c index fd86e6d..bf8a9f6 100644 --- a/mingw-w64-crt/testcases/t_tls_dll_native_process_detach.c +++ b/mingw-w64-crt/testcases/t_tls_dll_native_process_detach.c
@@ -17,7 +17,8 @@ if (_osplatform == VER_PLATFORM_WIN32_WINDOWS) { printf("PE TLS callbacks are not supported on Win9x\n"); - return 77; + /* exit, _exit, or ExitProcess calls TLS callbacks, so use TerminateProcess() which is not calling them */ + TerminateProcess(GetCurrentProcess(), 77); } /* Force linking libtlsnatprocdet.dll library */