33main(
int argc,
char **argv )
42 if ( ( argc > 1 ) && ( strcmp( argv[1],
"xxx" ) == 0 ) ) {
50 if (!
quiet) printf(
"Testing fork/PAPI_init/PAPI_shudtdown/exec/PAPI_init\n");
63 test_fail( __FILE__, __LINE__,
"forked PAPI_library_init",
69 if ( execlp( argv[0], argv[0],
"xxx", NULL ) == -1 ) {
75 if ( WEXITSTATUS( status ) != 0 ) {
76 test_fail( __FILE__, __LINE__,
"fork", WEXITSTATUS( status ) );
initialize the PAPI library.
Finish using PAPI and free all related resources.
Return codes and api definitions.
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)