19 #define TIMER_THRESHOLD 100 22 main(
int argc,
char **argv )
29 if ( !strcmp( argv[1],
"TESTS_QUIET" ) )
32 sleep_time =
atoi( argv[1] );
33 if ( sleep_time <= 0 )
42 printf(
"%-40s SKIPPED\nLine # %d\n", __FILE__, __LINE__ );
43 printf(
"timer_overflow takes a long time to run, run separately.\n" );
47 printf(
"This test will take about: %f minutes.\n",
48 (
float ) ( 20 * ( sleep_time / 60.0 ) ) );
54 for (
i = 0;
i <= 20;
i++ ) {
57 sleep( (
unsigned int ) sleep_time );
61 test_fail( __FILE__, __LINE__,
"PAPI_get_real_usec: overflow", 1 );
void test_pass(const char *filename)
Return codes and api definitions.
int PAPI_library_init(int version)
int main(int argc, char **argv)
long long PAPI_get_real_usec(void)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)