From f2e29da95fd387d596154cd8bae4038b0e9e7915 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 4 Jan 2016 23:43:09 +0000 Subject: [PATCH] tests/times-fail.c: use assert * tests/times-fail.c (main): Use assert. --- tests/times-fail.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/times-fail.c b/tests/times-fail.c index c1a3f7e0..5f5277ca 100644 --- a/tests/times-fail.c +++ b/tests/times-fail.c @@ -1,4 +1,5 @@ #include "tests.h" +#include #include #include #include @@ -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; -- 2.40.0