strace/tests/nsyscalls.test
James Cowgill 468dccf59d tests/nsyscalls.test: only trace the "syscall" syscall on mips o32
The "syscall" syscall only exists on o32 and causes strace to error out on
64-bit mips ABIs. Pass MIPS_ABI from the configure script through to
nsyscalls.test so the MIPS ABI can be checked.

* configure.ac (MIPS_ABI): Substitute into output files.
* tests/Makefile.am (MIPS_ABI): Export via AM_TEST_LOG_FLAGS.
* tests/nsyscalls.test: Restrict special mips handling to mips o32.
2016-08-11 16:47:29 +00:00

14 lines
193 B
Bash
Executable File

#!/bin/sh
# Check decoding of out-of-range syscalls.
. "${srcdir=.}/init.sh"
if [ "$MIPS_ABI" = "o32" ]; then
syscall=syscall
else
syscall=none
fi
run_strace_match_diff -e trace=$syscall