mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2025-01-06 08:05:04 +01:00
engine: exit with non-zero return code if engine tests are failed
This commit is contained in:
parent
ac46164a6e
commit
213650db8f
@ -941,6 +941,7 @@ static void Host_RunTests( int stage )
|
||||
TEST_LIST_1_CLIENT;
|
||||
#endif
|
||||
Msg( "Done! %d passed, %d failed\n", tests_stats.passed, tests_stats.failed );
|
||||
error_on_exit = tests_stats.failed >= 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
Sys_Quit();
|
||||
}
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ GNU General Public License for more details.
|
||||
#include "library.h"
|
||||
#include "whereami.h"
|
||||
|
||||
static int error_on_exit = 0; // arg for exit();
|
||||
int error_on_exit = 0; // arg for exit();
|
||||
|
||||
/*
|
||||
================
|
||||
|
@ -41,7 +41,7 @@ NOTE: never change this structure because all dll descriptions in xash code
|
||||
writes into struct by offsets not names
|
||||
========================================================================
|
||||
*/
|
||||
|
||||
extern int error_on_exit;
|
||||
void Sys_Sleep( int msec );
|
||||
double Sys_DoubleTime( void );
|
||||
char *Sys_GetClipboardData( void );
|
||||
|
Loading…
Reference in New Issue
Block a user