From 05078d5b100fc3e725829cd470ae03459b948372 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Mon, 21 Jun 2010 14:04:31 -0700 Subject: Partial revert "tet: Print status of tests" This partially reverts commit 830f253234c94636c197617466c4b2910a39e574. We want to keep the part where each individual test prints its status to stdout, but the part where the test case prints the composite status and the code to support it is unnecessary. Signed-off-by: Dan Nicholson --- src/tet3/dtet2lib/rescode.c | 33 --------------------------------- src/tet3/tcm/dtcm.c | 1 - 2 files changed, 34 deletions(-) (limited to 'src') diff --git a/src/tet3/dtet2lib/rescode.c b/src/tet3/dtet2lib/rescode.c index a9e2e8ae..fe7905f1 100644 --- a/src/tet3/dtet2lib/rescode.c +++ b/src/tet3/dtet2lib/rescode.c @@ -94,23 +94,6 @@ struct restab *tet_restab; int tet_nrestab; static int lrestab; -/* structure of an entry in the status code table */ -struct statustab { - char *st_name; /* status name */ - int st_code; /* status code */ -}; - -/* default status code table */ -static struct statustab tet_statustab[] = { - { "PASS", TET_EXIT_SUCCESS }, - { "FAIL", TET_EXIT_FAILURE }, - { "SKIP", TET_EXIT_SKIP }, -}; - -#define Ntet_statustab (sizeof(tet_statustab) / sizeof(tet_statustab[0])) - -static char invalid_status[] = "INVALID STATUS"; - /* static function declarations */ static void badresline PROTOLIST((char *, int, char *)); static struct restab *getrtbycode PROTOLIST((int)); @@ -513,22 +496,6 @@ register int lastresult, thisresult; } } -/* -** tet_getstatusname() - look up status code in the status table; -** return name if found, otherwise a default string -*/ - -char *tet_getstatusname(status) -int status; -{ - register struct statustab *stp; - - for (stp = tet_statustab; stp < tet_statustab + Ntet_statustab; stp++) - if (stp->st_code == status) - return stp->st_name; - return invalid_status; -} - /* ** tet_resulttostatus() - convert result code to exit status ** diff --git a/src/tet3/tcm/dtcm.c b/src/tet3/tcm/dtcm.c index 35922fb6..4e84ff63 100644 --- a/src/tet3/tcm/dtcm.c +++ b/src/tet3/tcm/dtcm.c @@ -381,7 +381,6 @@ char **argv; tet_resulttostatus(ret)); tet_icend(icnum, tpcount); } - printf("%s%s: %s\n", tsname, tcname, tet_getstatusname(status)); /* unexpected signals are fatal during cleanup */ setsigs(sigabandon); -- cgit v1.2.3