Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
96b04dc71d3ebaf46e4f03b85152234eb49c0a41
/
.
/
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
;
}