bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils-6.6 check failures on Itanium Linux


From: Jim Meyering
Subject: Re: coreutils-6.6 check failures on Itanium Linux
Date: Tue, 28 Nov 2006 09:20:49 +0100

Matthew Woehlke <address@hidden> wrote:
> (This failed in 6.3 too but I never followed up...)
>
> I get two 'make check' test failures on Itanium Linux. The tests are
> mv/dir2dir and mv/no-target-dir. The dir2dir failure seems to be a
> disagreement on error message, although given that the error I see is
> the same as on no-target-dir, I'm still suspicious.
>
> Here is the verbose output:
>
> $ VERBOSE=yes make TESTS='dir2dir no-target-dir' check
...
> 1c1
> < mv: cannot move `b/t' to `a/t': Device or resource busy
> ---
>> mv: cannot move `b/t' to `a/t': Directory not empty
> + exit 1
> + exit 1
> + status=1
> + cd /home/install/gnu/src/coreutils-6.6/tests/mv
> + chmod -R u+rwx dir2dir.tmp
> + rm -rf dir2dir.tmp
> + exit 1
> FAIL: dir2dir

We *can* work around this difference.
Here's a patch:

        * tests/mv/dir2dir: Also accept EBUSY.
        Reported by Matthew Woehlke.

diff --git a/tests/mv/dir2dir b/tests/mv/dir2dir
index 8518a62..11ae26e 100755
--- a/tests/mv/dir2dir
+++ b/tests/mv/dir2dir
@@ -52,8 +52,9 @@ fail=0
 # diagnostic about moving one directory to a subdirectory of itself.
 mv b/t a 2> out && fail=1

-# Accept either EEXIST or ENOTEMPTY.
-sed 's/: File exists/: Directory not empty/'<out>o1;mv o1 out
+# Accept any of these: EEXIST, ENOTEMPTY, EBUSY.
+sed             's/: File exists/: Directory not empty/'<out>o1;mv o1 out
+sed 's/: Device or resource busy/: Directory not empty/'<out>o1;mv o1 out

 cat <<\EOF > exp || fail=1
 mv: cannot move `b/t' to `a/t': Directory not empty




reply via email to

[Prev in Thread] Current Thread [Next in Thread]