Actually print the message on fatal_assert failure
This commit is contained in:
committed by
Keith Winstein
parent
f71e59949e
commit
84b4330ba2
@@ -24,8 +24,7 @@
|
|||||||
|
|
||||||
static void fatal_error( const char *expression, const char *file, int line, const char *function )
|
static void fatal_error( const char *expression, const char *file, int line, const char *function )
|
||||||
{
|
{
|
||||||
char buffer[ 2048 ];
|
fprintf( stderr, "Fatal assertion failure in function %s at %s:%d, failed test: %s\n",
|
||||||
snprintf( buffer, 2048, "Fatal assertion failure in function %s at %s:%d, failed test: %s\n",
|
|
||||||
function, file, line, expression );
|
function, file, line, expression );
|
||||||
exit( 2 );
|
exit( 2 );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user