Dmitry V. Levin
3456bcca67
* xlat/sched_flags.in: New file. * sched.c: Include "xlat/sched_flags.h". (print_sched_attr, sys_sched_setattr, sys_sched_getattr): New functions. * linux/dummy.h (sys_sched_getattr, sys_sched_setattr): Remove. * tests/sched_xetattr.c: New file. * tests/sched_xetattr.test: New test. * tests/Makefile.am (check_PROGRAMS): Add sched_xetattr. (TESTS): Add sched_xetattr.test. * tests/.gitignore: Add sched_xetattr.
14 lines
235 B
Bash
Executable File
14 lines
235 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check sched_getattr and sched_setattr syscalls decoding.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog > /dev/null
|
|
OUT="$LOG.out"
|
|
run_strace -e sched_getattr,sched_setattr $args > "$OUT"
|
|
match_grep "$LOG" "$OUT"
|
|
rm -f "$OUT"
|
|
|
|
exit 0
|