* [LTP] [PATCH] tst_test: Change result strings to use T prefix
@ 2020-09-21 20:02 Bird, Tim
2020-09-22 9:42 ` Petr Vorel
0 siblings, 1 reply; 2+ messages in thread
From: Bird, Tim @ 2020-09-21 20:02 UTC (permalink / raw)
To: ltp
Change PASS to TPASS in the new C library.
Change other results strings to also include the "T" prefix.
This makes the new library consistent with previous LTP
output, and with the shell output.
Signed-off-by: Tim Bird <tim.bird@sony.com>
---
lib/tst_test.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/tst_test.c b/lib/tst_test.c
index 175dea7..8cc76d5 100644
--- a/lib/tst_test.c
+++ b/lib/tst_test.c
@@ -193,22 +193,22 @@ static void print_result(const char *file, const int lineno, int ttype,
switch (TTYPE_RESULT(ttype)) {
case TPASS:
- res = "PASS";
+ res = "TPASS";
break;
case TFAIL:
- res = "FAIL";
+ res = "TFAIL";
break;
case TBROK:
- res = "BROK";
+ res = "TBROK";
break;
case TCONF:
- res = "CONF";
+ res = "TCONF";
break;
case TWARN:
- res = "WARN";
+ res = "TWARN";
break;
case TINFO:
- res = "INFO";
+ res = "TINFO";
break;
default:
tst_brk(TBROK, "Invalid ttype value %i", ttype);
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-22 9:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-21 20:02 [LTP] [PATCH] tst_test: Change result strings to use T prefix Bird, Tim
2020-09-22 9:42 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox