예제 #1
0
void report( int rc, const char *test_name )
{
    if( !rc )
    {
        printf("KERNEL TEST PASSED: %s\n", test_name );
        return;
    }

    char rcs[128];
    strerror_r(rc, rcs, sizeof(rcs));

    nFailed++;
    printf("!!! KERNEL TEST FAILED: %s -> %d (%s)\n", test_name, rc, rcs );

    if( fhandler_f )
    {
        printf("Post mortem:\n");
        fhandler_f( fhandler_arg );
    }
}
예제 #2
0
void report( int rc, const char *test_name )
{
    if( !rc )
    {
	// CI: this message is being watched by CI scirpts (ci-runtest.sh)
        printf("KERNEL TEST PASSED: %s\n", test_name );
        return;
    }

    char rcs[128];
    strerror_r(rc, rcs, sizeof(rcs));

    nFailed++;
    // CI: this message is being watched by CI scirpts (ci-runtest.sh)
    printf("!!! KERNEL TEST FAILED: %s -> %d (%s)\n", test_name, rc, rcs );

    if( fhandler_f )
    {
        printf("Post mortem:\n");
        fhandler_f( fhandler_arg );
    }
}