summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-06-16 12:18:50 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-06-16 12:18:51 -0700
commitc651ccc91d1f0f67752b22fab6bfaab9cc327fe8 (patch)
treea5a219436c924be00091acf403925544b22b2f5e /t/test-lib-functions.sh
parentMerge branch 'sh/enable-preloadindex' (diff)
parentt5000, t5003: do not use test_cmp to compare binary files (diff)
downloadtgif-c651ccc91d1f0f67752b22fab6bfaab9cc327fe8.tar.xz
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 f5815350d3..c617c826db 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.