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