Skip to contentSkip to conversation

tst_test: Change result strings to use T prefix

PATCH New Bird 2 participants 2 messages Sep 21, 2020 – Sep 22, 2020 Library code

lore
Share & tools
lore

Bird

#0 lore raw

PATCH 1/1 tst_test: Change result strings to use T prefix

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.

---
 lib/tst_test.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
lib/tst_test.c +6 -6
index 175dea7..8cc76d5 100644
@@ -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);
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 tst_test: Change result strings to use T prefix

Hi Tim,

Quoted 4 lines

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.

Kind regards,
Petr