e354a5
commit 9e2dc874e62b0950891b319c000b009ea12ac8c2
e354a5
Author: Girish Joshi <girish946@gmail.com>
e354a5
Date:   Fri May 29 10:11:24 2020 -0300
e354a5
e354a5
    build: Use FAIL_EXIT1 () on failure to exec child [BZ #23990]
e354a5
    
e354a5
    Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
e354a5
e354a5
diff --git a/support/test-container.c b/support/test-container.c
e354a5
index d7ed073812305f71..9975c8cb7bc9a955 100644
e354a5
--- a/support/test-container.c
e354a5
+++ b/support/test-container.c
e354a5
@@ -392,7 +392,7 @@ recursive_remove (char *path)
e354a5
     /* "rm" would have already printed a suitable error message.  */
e354a5
     if (! WIFEXITED (status)
e354a5
 	|| WEXITSTATUS (status) != 0)
e354a5
-      exit (1);
e354a5
+      FAIL_EXIT1 ("exec child returned status: %d", status);
e354a5
 
e354a5
     break;
e354a5
   }