shithub: scc

Download patch

ref: ae625397ab37916be884edee90fc7d37a50e8d0d
parent: 239fa3156f2766158945882883bf00ef8f342ea8
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Sep 1 10:23:25 EDT 2018

[tests/libc] Use printf in 0001-abort

--- a/tests/libc/execute/0001-abort.c
+++ b/tests/libc/execute/0001-abort.c
@@ -3,22 +3,19 @@
 #include <signal.h>
 #include <stdlib.h>
 
-sig_atomic_t v;
-
 void
 handler(int dummy)
 {
-	v = 1;
+	_Exit(0);
 }
 
 int
 main(void)
 {
+	printf("aborting\n");
 	signal(SIGABRT, handler);
 	abort();
-
-	if (v == 1)
-		printf("ok\n");
+	printf("borning\n");
 
 	return 1;
 }
--- a/tests/libc/execute/0001-abort.txt
+++ b/tests/libc/execute/0001-abort.txt
@@ -1,1 +1,1 @@
-ok
+aborting