/
githubmirror
/
strace
Обзор
Документация
Войти
/
githubmirror
/
strace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/count_unknown_many.test
29 строк
681 B
Dmitry V. Levin
tests: add coverage for out-of-range syscalls -c summary
27 май 2026, 11:00
27 май 2026, 11:00
9beb5f4
Код
Авторство
О чём код?
#!/bin/sh # # Check that -c accounts for many distinct out-of-range syscalls. # # Copyright (c) 2026 The strace developers. # All rights reserved. # # SPDX-License-Identifier: GPL-2.0-or-later . "${srcdir=.}/init.sh" if [ "$MIPS_ABI" = "o32" ]; then skip_ "mips $MIPS_ABI is not supported by this test yet" fi run_prog > "$OUT" cat > "$EXP" << '__EOF__' % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 100.00 +[^ ]+ +[^ ]+ +17 +17 +total __EOF__ check_prog sed sed 's/^/[ ]*[^ ]+ +[^ ]+ +[^ ]+ +1 +1 +/' < "$OUT" >> "$EXP" run_strace -e trace=none -c $args > /dev/null match_grep "$LOG" "$EXP"