summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-08-08 11:51:00 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-08-11 13:02:47 -0700
commit3f4ab627146fcb1e1887198f520f39fb84fde73a (patch)
treee0b26610ba632f8c55d857e2a5620550c749f872 /t/test-lib.sh
parentTolerate zlib deflation with window size < 32Kb (diff)
downloadtgif-3f4ab627146fcb1e1887198f520f39fb84fde73a.tar.xz
test: consolidate definition of $LF
As we seem to need this variable that holds a single LF character in many places, define it in test-lib.sh and let the test scripts use it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index df25f17929..9d746b051c 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -92,6 +92,10 @@ _x40="$_x05$_x05$_x05$_x05$_x05$_x05$_x05$_x05"
# Zero SHA-1
_z40=0000000000000000000000000000000000000000
+# Line feed
+LF='
+'
+
# Each test should start with something like this, after copyright notices:
#
# test_description='Description of this test...