* init.cfg (uses_strace_): New function.
(require_strace_): Use it.
tests/cksum/cksum-c.sh: Likewise.
tests/misc/read-errors.sh: Likewise.
{
test $# = 1 || framework_failure_
+ uses_strace_
+
strace -V < /dev/null > /dev/null 2>&1 ||
skip_ 'no strace program'
env printf '\xC3|\xED\xBA\xAD|\u0089|\xED\xA6\xBF\xED\xBF\xBF\n'
}
+# AIX has a 'strace' program unrelated to the one we care about. Avoid
+# executing it since it will run forever until manually killed when given
+# three to seven arguments.
+uses_strace_ ()
+{
+ strace true > /dev/null 2>&1
+ if test $? -ne 0; then
+ strace () { false; }
+ fi
+}
+
sanitize_path_
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ cksum shuf
+uses_strace_
shuf -i 1-10 > input || framework_failure_
# along with this program. If not, see <https://www.gnu.org/licenses/>.
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+uses_strace_
! cat . >/dev/null 2>&1 || skip_ "Need unreadable directories"