PAPI  5.3.2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
exec2.c File Reference
Include dependency graph for exec2.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 17 of file exec2.c.

18 {
19  int retval;
20 
21  tests_quiet( argc, argv ); /* Set TESTS_QUIET variable */
22 
23  if ( ( argc > 1 ) && ( strcmp( argv[1], "xxx" ) == 0 ) ) {
25  if ( retval != PAPI_VER_CURRENT )
26  test_fail( __FILE__, __LINE__, "execed PAPI_library_init", retval );
27  } else {
29  if ( retval != PAPI_VER_CURRENT )
30  test_fail( __FILE__, __LINE__, "main PAPI_library_init", retval );
31 
32  if ( execlp( argv[0], argv[0], "xxx", NULL ) == -1 )
33  test_fail( __FILE__, __LINE__, "execlp", PAPI_ESYS );
34  }
35 
36  test_pass( __FILE__, NULL, 0 );
37  exit( 1 );
38 }
tests_quiet(argc, argv)
test_pass(__FILE__, NULL, 0)
int int argc
Definition: iozone.c:1609
char ** argv
Definition: iozone.c:1610
test_fail(__FILE__, __LINE__,"PAPI_library_init", retval)
int PAPI_library_init(int version)
Definition: papi.c:495
#define PAPI_VER_CURRENT
Definition: fpapi.h:14
#define PAPI_ESYS
Definition: fpapi.h:108
ssize_t retval
Definition: libasync.c:338
void exit()

Here is the call graph for this function: