tests/times-fail.c: use assert
* tests/times-fail.c (main): Use assert.
diff --git a/tests/times-fail.c b/tests/times-fail.c
index c1a3f7e..5f5277c 100644
--- a/tests/times-fail.c
+++ b/tests/times-fail.c
@@ -1,4 +1,5 @@
#include "tests.h"
+#include <assert.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/syscall.h>
@@ -6,9 +7,8 @@
int
main (void)
{
- if (syscall(__NR_times, 0x42) != -1)
- return 77;
- puts("times(0x42) = -1 EFAULT (Bad address)");
+ assert(syscall(__NR_times, 0x42) == -1);
+ printf("times(0x42) = -1 EFAULT (%m)\n");
puts("+++ exited with 0 +++");
return 0;