Instead of comparing actual output to an empty file, use
test_must_be_empty. In addition to the better error message provided by
the helper, allocation of an empty file during the setup sequence can be
avoided.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Jeff King <peff@peff.net>
file6_data='#!/bin/sh
echo "$@"'
->empty
-
###
### series A
###
cat-blob $blob
EOF
test_cmp expect actual.3 &&
- test_cmp empty actual.1 &&
+ test_must_be_empty actual.1 &&
git fast-import 3>actual.3 >actual.1 <<-EOF &&
option cat-blob-fd=3
cat-blob $blob
EOF
- test_cmp empty actual.3 &&
+ test_must_be_empty actual.3 &&
test_cmp expect actual.1
'
test_expect_success 'R: quiet option results in no stats being output' '
cat input | git fast-import 2> output &&
- test_cmp empty output
+ test_must_be_empty output
'
test_expect_success 'R: feature done means terminating "done" is mandatory' '