tests: tweak basic-1 to use warn_ rather than literal "exit 77"

* tests/install/basic-1 (just_built_dd): Use warn_, rather than
cat and exit 77.
This commit is contained in:
Jim Meyering committed 2010-12-13 08:29:42 +01:00
1 parent 8351407f87
commit 0c70708db7
1 file changed
+6 -18
+6 -18
View File
@@ -39,28 +39,16 @@ dd2=dd2$EXEEXT
just_built_dd=$abs_top_builddir/src/$dd
test -r "$just_built_dd" || \
{
cat 1>&2 <<EOF
$0: WARNING!!!
Your just-built dd binary, $just_built_dd
is not readable, so skipping the remaining tests in this file.
EOF
exit 77
}
test -r "$just_built_dd" \
|| warn_ "WARNING!!! Your just-built dd binary, $just_built_dd
is not readable, so skipping the remaining tests in this file."
cp "$just_built_dd" . || fail=1
cp $dd $dd2 || fail=1
strip $dd2 || \
{
cat 1>&2 <<EOF
$0: WARNING!!!
Your strip command doesn't seem to work, so skipping
the test of install's --strip option.
EOF
exit 77
}
strip $dd2 \
|| warn_ "WARNING!!! Your strip command doesn't seem to work,
so skipping the test of install's --strip option."
# This test would fail with 3.16s when using versions of strip that
# don't work on read-only files (the one from binutils works fine).