From: <pl...@us...> - 2003-07-08 18:28:01
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/setpgid In directory sc8-pr-cvs1:/tmp/cvs-serv27137 Modified Files: setpgid03.c Log Message: make setpgid03 less spammy Index: setpgid03.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/setpgid/setpgid03.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- setpgid03.c 27 Mar 2003 20:28:51 -0000 1.3 +++ setpgid03.c 8 Jul 2003 18:27:58 -0000 1.4 @@ -30,6 +30,9 @@ * RESTRICTIONS * This test is not completely written in the LTP format - PLEASE FIX! */ + +#define DEBUG 0 + #include <wait.h> #include <limits.h> #include <signal.h> @@ -104,18 +107,21 @@ } sleep(1); if ((ret = wait(&status)) > 0) { - tst_resm(TINFO, "Test {%d} exited " - "status 0x%0x", ret, status); + if (DEBUG) + tst_resm(TINFO, "Test {%d} exited " + "status 0x%0x", ret, status); if (status != 0) { fail = 1; } } } - if (fail || exno) { - tst_resm(TINFO, "Test test 1: FAILED"); - } else { - tst_resm(TINFO, "Test test 1: PASSED"); + if (DEBUG) { + if (fail || exno) { + tst_resm(TINFO, "Test test 1: FAILED"); + } else { + tst_resm(TINFO, "Test test 1: PASSED"); + } } //test2: @@ -144,7 +150,8 @@ "got %d", errno); } if ((ret = wait(&status)) > 0) { - tst_resm(TINFO, "Test {%d} exited " + if (DEBUG) + tst_resm(TINFO, "Test {%d} exited " "status 0x%0x", ret, status); if (status != 0) { fail = 1; |