strace/tests/times-fail.c
Dmitry V. Levin f2e29da95f tests/times-fail.c: use assert
* tests/times-fail.c (main): Use assert.
2016-01-04 23:43:09 +00:00

16 lines
253 B
C

#include "tests.h"
#include <assert.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/syscall.h>
int
main (void)
{
assert(syscall(__NR_times, 0x42) == -1);
printf("times(0x42) = -1 EFAULT (%m)\n");
puts("+++ exited with 0 +++");
return 0;
}