From d78ad5caccb4018d4eb833b43d17a417d4e7dc28 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 5 Oct 2006 08:43:24 +0000 Subject: [PATCH] * 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 . --- ChangeLog | 7 +++++++ tests/install/basic-1 | 15 ++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) 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 <