From bcb33ad3542134b1a7dca86a88cf3c8b21d6c476 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 15 Jul 2022 19:55:20 +0200 Subject: [PATCH] created exitCode check for why2-test if exitCode isn't 0, test now fails --- src/lib/test/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/test/main.c b/src/lib/test/main.c index c55ea80..f3465ad 100644 --- a/src/lib/test/main.c +++ b/src/lib/test/main.c @@ -46,7 +46,7 @@ int main(void) timeBuffer += encrypted.elapsedTime; //GET TIME 1 //COMPARE DIFFERENCE - if (strcmp(encrypted.outputText, TEST_TEXT) == 0) + if (strcmp(encrypted.outputText, TEST_TEXT) == 0 && encrypted.exitCode == 0) { printf ( @@ -64,7 +64,7 @@ int main(void) } else { - fprintf(stderr, "Test failed!\n\n%s // %s\n", encrypted.outputText, TEST_TEXT); + fprintf(stderr, "Test failed! (%u)\n\n%s // %s\n", encrypted.exitCode, encrypted.outputText, TEST_TEXT); exitCode = 1; }