Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
d461151f2384834d9c6cc98dc7285f363a6186ed
/
.
/
tests
/
times-fail.c
blob: 5f5277ca55ef91a48d070f507dcc6daa72d30ad3 [
file
] [
log
] [
blame
]
#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
;
}