* tests/vhangup.c: New file. * tests/vhangup.test: New test. * tests/.gitignore: Add vhangup. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add vhangup.test. --- tests/.gitignore | 1 + tests/Makefile.am | 2 ++ tests/vhangup.c | 23 +++++++++++++++++++++++ tests/vhangup.test | 7 +++++++ 4 files changed, 33 insertions(+) create mode 100644 tests/vhangup.c create mode 100755 tests/vhangup.test
diff --git a/tests/.gitignore b/tests/.gitignore index dad488d..d092f34 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -259,6 +259,7 @@ utime utimensat utimes vfork-f +vhangup vmsplice wait xattr diff --git a/tests/Makefile.am b/tests/Makefile.am index ed0bf28..3b7e561 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -312,6 +312,7 @@ check_PROGRAMS = \ utimensat \ utimes \ vfork-f \ + vhangup \ vmsplice \ wait \ xattr \ @@ -591,6 +592,7 @@ DECODER_TESTS = \ utime.test \ utimensat.test \ utimes.test \ + vhangup.test \ vmsplice.test \ wait.test \ xattr.test \ diff --git a/tests/vhangup.c b/tests/vhangup.c new file mode 100644 index 0000000..127bc81 --- /dev/null +++ b/tests/vhangup.c @@ -0,0 +1,23 @@ +#include "tests.h" +#include <sys/syscall.h> + +#ifdef __NR_vhangup + +# include <stdio.h> +# include <unistd.h> + +int +main(void) +{ + long rc = syscall(__NR_vhangup); + printf("vhangup() = %ld %s (%m)\n", rc, errno2name()); + + puts("+++ exited with 0 +++"); + return 0; +} + +#else + +SKIP_MAIN_UNDEFINED("__NR_vhangup") + +#endif diff --git a/tests/vhangup.test b/tests/vhangup.test new file mode 100755 index 0000000..8fe1cac --- /dev/null +++ b/tests/vhangup.test @@ -0,0 +1,7 @@ +#!/bin/sh + +# Check vhangup syscall decoding. + +. "${srcdir=.}/init.sh" + +run_strace_match_diff -a10 -- 1.8.3.1 ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel