Don't use assert() in tests

It pops a dialog on windows and hangs
This commit is contained in:
Fletcher Dunn
2026-04-25 13:15:41 -07:00
parent 44d5625b01
commit 092ec40cfb
+7 -1
View File
@@ -53,7 +53,13 @@ static void DebugOutput( ESteamNetworkingSocketsDebugOutputType eType, const cha
if ( strstr( pszMsg, "SteamNetworkingGlobalLock held for" ) )
return;
assert( !"TEST FAILED" );
fprintf( stderr, "\n\n"
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
"!! TEST FAILED !!\n"
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
"\n", pszMsg );
fflush( stderr );
abort();
}
}