From d78ad5caccb4018d4eb833b43d17a417d4e7dc28 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 5 Oct 2006 08:43:24 +0000 Subject: * 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 . --- tests/install/basic-1 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tests/install') diff --git a/tests/install/basic-1 b/tests/install/basic-1 index 9c7d106ad..55f0b511c 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 <