]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: make install-C slightly less prone to confusion
authorJim Meyering <meyering@redhat.com>
Wed, 19 Aug 2009 15:10:23 +0000 (17:10 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 19 Aug 2009 15:10:23 +0000 (17:10 +0200)
* tests/install/install-C: Invoke framework_failure, if necessary.

tests/install/install-C

index 959bee192d0085afec685deea2614fa751f8a1d6..a1a9d6831109538a2150a1c184ef48c22b8e62f4 100755 (executable)
@@ -31,10 +31,10 @@ mode3=2755
 fail=0
 
 echo test > a || framework_failure
-echo "\`a' -> \`b'" > out_installed_first
+echo "\`a' -> \`b'" > out_installed_first || framework_failure
 echo "removed \`b'
-\`a' -> \`b'" > out_installed_second
-> out_empty
+\`a' -> \`b'" > out_installed_second || framework_failure
+: > out_empty || framework_failure
 
 # destination file does not exist
 ginstall -Cv -m$mode1 a b > out || fail=1