X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vc-list-files-cvs.sh;h=12c93664d2141c37b462de60f81c0dc8da439c6a;hb=9c9a9765811eb1e698517065953e09d6b8c07400;hp=c94932fc27e03e55d3c6325deece583a03d3d007;hpb=f1fcb8539c9d1c7d9cefb25ce5c07a099ea1f148;p=gnulib.git diff --git a/tests/test-vc-list-files-cvs.sh b/tests/test-vc-list-files-cvs.sh index c94932fc2..12c93664d 100755 --- a/tests/test-vc-list-files-cvs.sh +++ b/tests/test-vc-list-files-cvs.sh @@ -44,7 +44,9 @@ for i in with-cvsu without; do ok=0 mkdir $tmpdir && cd $tmpdir && # without cvs, skip the test - { ( cvs -Q -d "$repo" init ) > /dev/null 2>&1 || exit 77; } && + # The double use of 'exit' is needed for the reference to $? inside the trap. + { ( cvs -Q -d "$repo" init ) > /dev/null 2>&1 \ + || { echo "Skipping test: cvs not found in PATH"; (exit 77); exit 77; }; } && mkdir w && cd w && mkdir d && touch d/a b c &&