From: Jim Meyering Date: Thu, 5 Oct 2006 08:43:24 +0000 (+0000) Subject: * tests/install/basic-1: Skip the latter part of this test if the X-Git-Tag: COREUTILS-6_4~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d78ad5caccb4018d4eb833b43d17a417d4e7dc28;p=thirdparty%2Fcoreutils.git * tests/install/basic-1: Skip the latter part of this test if the just-built dd binary is not readable. Otherwise, this test would fail when binaries were created as root. Reported by Bauke Jan Douma in . --- diff --git a/ChangeLog b/ChangeLog index 5458cc6de1..1ebe1cdd4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-10-05 Jim Meyering + + * tests/install/basic-1: Skip the latter part of this test if the + just-built dd binary is not readable. Otherwise, this test would fail + when binaries were created as root. Reported by Bauke Jan Douma in + . + 2006-10-03 Paul Eggert * src/system.h (ST_BLKSIZE): Ceiling at SIZE_MAX / 8 + 1, not at 4 diff --git a/tests/install/basic-1 b/tests/install/basic-1 index 9c7d106ad8..55f0b511c8 100755 --- a/tests/install/basic-1 +++ b/tests/install/basic-1 @@ -58,7 +58,20 @@ test -f $dir/$file || fail=1 # Make sure strip works. dd=dd$EXEEXT dd2=dd2$EXEEXT -cp $pwd/../../src/$dd . || fail=1 + +just_built_dd=$pwd/../../src/$dd + +test -r $just_built_dd || \ + { + cat 1>&2 <