Dmitry V. Levin | e837b14 | 2015-02-04 02:09:52 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Check select syscall decoding. |
| 4 | |
| 5 | . "${srcdir=.}/init.sh" |
| 6 | |
Andreas Schwab | 9533610 | 2015-03-12 16:47:38 +0100 | [diff] [blame] | 7 | syscall= |
| 8 | $STRACE -epselect6 -h > /dev/null && syscall=$syscall,pselect6 |
| 9 | $STRACE -eselect -h > /dev/null && syscall=$syscall,select |
| 10 | test -n "$syscall" || |
Dmitry V. Levin | 8f54664 | 2015-03-17 17:07:57 +0000 | [diff] [blame] | 11 | fail_ 'neither select not pselect6 syscall is supported on this architecture' |
Dmitry V. Levin | 599819d | 2015-02-27 01:39:26 +0000 | [diff] [blame] | 12 | |
Dmitry V. Levin | 8f54664 | 2015-03-17 17:07:57 +0000 | [diff] [blame] | 13 | run_prog |
| 14 | run_strace -e$syscall $args |
| 15 | match_awk |
Dmitry V. Levin | e837b14 | 2015-02-04 02:09:52 +0000 | [diff] [blame] | 16 | |
| 17 | exit 0 |