File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,6 @@ AM_TEST_LOG_FLAGS = STRACE_ARCH=$(ARCH) $(srcdir)/run.sh
307
307
EXTRA_DIST = init.sh run.sh match.awk \
308
308
caps.awk \
309
309
dumpio.expected \
310
- epoll_create1.expected \
311
310
eventfd.expected \
312
311
execve.expected \
313
312
execve-v.expected \
Original file line number Diff line number Diff line change 28
28
#include "tests.h"
29
29
#include <assert.h>
30
30
#include <fcntl.h>
31
+ #include <stdio.h>
31
32
#include <unistd.h>
32
33
#include <sys/syscall.h>
33
34
37
38
main (void )
38
39
{
39
40
(void ) close (0 );
41
+
40
42
if (syscall (__NR_epoll_create1 , O_CLOEXEC ))
41
43
perror_msg_and_skip ("epoll_create1 O_CLOEXEC" );
44
+ puts ("epoll_create1(EPOLL_CLOEXEC) = 0" );
45
+
42
46
assert (syscall (__NR_epoll_create1 , O_CLOEXEC | O_NONBLOCK ) == -1 );
47
+ printf ("epoll_create1(EPOLL_CLOEXEC|%#x) = -1 EINVAL (%m)\n" , O_NONBLOCK );
48
+
49
+ puts ("+++ exited with 0 +++" );
43
50
return 0 ;
44
51
}
45
52
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
5
5
. " ${srcdir=.} /init.sh"
6
6
7
- run_prog
8
- run_strace -e epoll_create1 $args
9
- match_grep
7
+ run_prog > /dev/null
8
+ OUT=" $LOG .out"
9
+ run_strace -a28 -eepoll_create1 $args > " $OUT "
10
+ match_diff " $LOG " " $OUT "
11
+ rm -f " $OUT "
10
12
11
13
exit 0
You can’t perform that action at this time.
0 commit comments