summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2010-06-21 14:04:31 -0700
committerDan Nicholson <dbn.lists@gmail.com>2010-06-21 15:29:51 -0700
commit05078d5b100fc3e725829cd470ae03459b948372 (patch)
treef36b8e8d6f0dc02a7492775263becbd1ee7eefe1 /src
parent559d07c764a50d99d04b805e2e2bca9ff5a296c6 (diff)
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 <dbn.lists@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/tet3/dtet2lib/rescode.c33
-rw-r--r--src/tet3/tcm/dtcm.c1
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);