From: Jim Meyering Date: Sat, 24 Mar 2007 10:25:15 +0000 (+0100) Subject: If strace malfunctions, skip the test rather than failing it. X-Git-Tag: v6.9.89~357^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de730249777c65b2c75502b00159400eda8dacf9;p=thirdparty%2Fcoreutils.git If strace malfunctions, skip the test rather than failing it. * tests/mv/atomic: Required on a mips-unknown-linux-gnu system running the aging linux-2.4.27-mipscvs-20040814. --- diff --git a/ChangeLog b/ChangeLog index fdb48b54b2..33638db58a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-24 Jim Meyering + + If strace malfunctions, skip the test rather than failing it. + * tests/mv/atomic: Required on a mips-unknown-linux-gnu system + running the aging linux-2.4.27-mipscvs-20040814. + 2007-03-23 Paul Eggert * src/pathchk.c: Don't include euidaccess.h, as we don't call diff --git a/tests/mv/atomic b/tests/mv/atomic index 1fa07360f9..728bbfa1f0 100755 --- a/tests/mv/atomic +++ b/tests/mv/atomic @@ -1,7 +1,7 @@ #!/bin/sh # ensure that mv doesn't first unlink its destination in one particular case -# Copyright (C) 2006, 2006 Free Software Foundation, Inc. +# Copyright (C) 2006-2007 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -55,6 +55,12 @@ if test "$skip" = 1; then (exit 77); exit 77 fi +strace -qe unlink echo > /dev/null 2>&1 || skip=1 +if test "$skip" = 1; then + echo "$0: strace doesn't work, so skipping this test" 1>&2 + (exit 77); exit 77 +fi + fail=0 strace -qe unlink mv -T s1 s2 > out 2>&1 || fail=1