[LTP] [PATCH] tst_test: Change result strings to use T prefix
Bird, Tim
Tim.Bird@sony.com
Mon Sep 21 22:02:08 CEST 2020
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
More information about the ltp
mailing list