From: Subrata <sub...@us...> - 2008-05-06 12:34:32
|
Update of /cvsroot/ltp/ltp/testcases/realtime/func/async_handler In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9891/ltp/testcases/realtime/func/async_handler Modified Files: async_handler.c async_handler_jk.c Log Message: Modified async_handler.c and async_handler_jk.c to consider pass criteria (-c) arg. Signed-off-by: Gilles Carry <gil...@bu...>. Acked-by: Chirag <ch...@li...>. Index: async_handler_jk.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/realtime/func/async_handler/async_handler_jk.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** async_handler_jk.c 20 Apr 2008 17:20:16 -0000 1.3 --- async_handler_jk.c 6 May 2008 12:34:26 -0000 1.4 *************** *** 149,152 **** --- 149,153 ---- setup(); + pass_criteria = PASS_US; rt_init("jh", parse_args, argc, argv); if (run_jvmsim) { *************** *** 169,174 **** printf("delta = %ld us\n", delta); ! printf("\nCriteria: latencies < %d\n", PASS_US); ! printf("Result: %s\n", delta > PASS_US ? "FAIL" : "PASS"); return 0; --- 170,175 ---- printf("delta = %ld us\n", delta); ! printf("\nCriteria: latencies < %d\n", (int)pass_criteria); ! printf("Result: %s\n", delta > pass_criteria ? "FAIL" : "PASS"); return 0; Index: async_handler.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/realtime/func/async_handler/async_handler.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** async_handler.c 20 Apr 2008 17:20:16 -0000 1.4 --- async_handler.c 6 May 2008 12:34:26 -0000 1.5 *************** *** 145,149 **** usleep(10); delta = (long)((end - start)/NS_PER_US); ! if (delta > PASS_US) ret = 1; dat.records[i].x = i; --- 145,149 ---- usleep(10); delta = (long)((end - start)/NS_PER_US); ! if (delta > pass_criteria) ret = 1; dat.records[i].x = i; *************** *** 181,184 **** --- 181,185 ---- printf("-----------------------------------\n\n"); + pass_criteria = PASS_US; rt_init("ji:h", parse_args, argc, argv); *************** *** 202,206 **** join_threads(); ! printf("\nCriteria: latencies < %d\n", PASS_US); printf("Result: %s\n", ret ? "FAIL" : "PASS"); --- 203,207 ---- join_threads(); ! printf("\nCriteria: latencies < %d\n", (int)pass_criteria); printf("Result: %s\n", ret ? "FAIL" : "PASS"); |