blob: 52b9f170fab750a2eebb6b75d55050f6cc1c253e [file] [log] [blame]
Dmitry V. Levine837b142015-02-04 02:09:52 +00001#!/bin/sh
2
3# Check select syscall decoding.
4
5. "${srcdir=.}/init.sh"
6
Andreas Schwab95336102015-03-12 16:47:38 +01007syscall=
8$STRACE -epselect6 -h > /dev/null && syscall=$syscall,pselect6
9$STRACE -eselect -h > /dev/null && syscall=$syscall,select
10test -n "$syscall" ||
Dmitry V. Levin8f546642015-03-17 17:07:57 +000011 fail_ 'neither select not pselect6 syscall is supported on this architecture'
Dmitry V. Levin599819d2015-02-27 01:39:26 +000012
Dmitry V. Levin8f546642015-03-17 17:07:57 +000013run_prog
14run_strace -e$syscall $args
15match_awk
Dmitry V. Levine837b142015-02-04 02:09:52 +000016
17exit 0