From 7bab0339dc34011cceb094b4f00fef395be9cf59 Mon Sep 17 00:00:00 2001
From: Alexandre Abadie <alexandre.abadie@inria.fr>
Date: Sun, 29 Oct 2017 11:28:13 +0100
Subject: [PATCH] tests/pthread_cleanup: small improvements

---
 tests/pthread_cleanup/main.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/tests/pthread_cleanup/main.c b/tests/pthread_cleanup/main.c
index a6ec193896..516c136d88 100644
--- a/tests/pthread_cleanup/main.c
+++ b/tests/pthread_cleanup/main.c
@@ -60,7 +60,7 @@ static void *run(void *unused) {
 }
 
 int main(void) {
-    puts("Start.");
+    puts("START");
 
     pthread_t th_id;
     pthread_create(&th_id, NULL, run, NULL);
@@ -69,6 +69,12 @@ int main(void) {
     pthread_join(th_id, (void **) &res);
 
     printf("Result: %i\n", (int) (intptr_t) res);
-    puts("Done.");
+
+    if (res == RET_EXIT) {
+        puts("SUCCESS");
+    }
+    else {
+        puts("FAILURE");
+    }
     return 0;
 }
-- 
GitLab