static void go(int mynum) { int r; say("Process %d (pid %d) starting computation...\n", mynum, (int) getpid()); computeall(mynum); r = answer(); if (r != right_answers[mynum]) { say("Process %d answer %d: FAILED, should be %d\n", mynum, r, right_answers[mynum]); exit(1); } say("Process %d answer %d: passed\n", mynum, r); exit(0); }
static void go(int mynum) { int r; lsay("Process %d (pid %d) starting computation...\n", mynum, (int) getpid()); computeall(mynum); r = answer(); if (r != right_answers[mynum]) { tsay("Process %d answer %d: FAILED, should be %d\n", mynum, r, right_answers[mynum]); success(TEST161_FAIL, SECRET, "/testbin/parallelvm"); exit(1); } lsay("\nProcess %d: OK\n", mynum, r); exit(0); }