diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tet3/dtet2lib/rescode.c | 33 | ||||
-rw-r--r-- | src/tet3/tcm/dtcm.c | 1 |
2 files changed, 0 insertions, 34 deletions
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)); @@ -514,22 +497,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 ** ** return exit status corresponding to result code 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); |