summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-16 19:18:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-16 19:18:51 (GMT)
commitc651ccc91d1f0f67752b22fab6bfaab9cc327fe8 (patch)
treea5a219436c924be00091acf403925544b22b2f5e /t/test-lib-functions.sh
parent96b29bde9194f96cb711a00876700ea8dd9c0727 (diff)
parentb93e6e36637bed9d80f9ffa786ea78044fde6bac (diff)
downloadgit-c651ccc91d1f0f67752b22fab6bfaab9cc327fe8.zip
git-c651ccc91d1f0f67752b22fab6bfaab9cc327fe8.tar.gz
git-c651ccc91d1f0f67752b22fab6bfaab9cc327fe8.tar.bz2
Merge branch 'sk/test-cmp-bin'
* sk/test-cmp-bin: t5000, t5003: do not use test_cmp to compare binary files
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index f581535..c617c82 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -617,6 +617,12 @@ test_cmp() {
$GIT_TEST_CMP "$@"
}
+# test_cmp_bin - helper to compare binary files
+
+test_cmp_bin() {
+ cmp "$@"
+}
+
# Check if the file expected to be empty is indeed empty, and barfs
# otherwise.