From d761a18c3b1a38390ae0c23fea203bd23f509d84 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 22 Nov 2016 22:06:06 -0500 Subject: tests: Mkae LC_ALL=C apply to the whole pipeline when sorting. --- tests.sh | 5 ++++- tests/test_0069.out | 32 ++++++++++++++++---------------- tests/test_0070.out | 32 ++++++++++++++++---------------- tests/test_0072.out | 14 +++++++------- 4 files changed, 43 insertions(+), 40 deletions(-) diff --git a/tests.sh b/tests.sh index eb23d20..04d8a65 100755 --- a/tests.sh +++ b/tests.sh @@ -96,7 +96,10 @@ if [ "$1" == "update" ]; then fi function bfs_sort() { - LC_ALL=C awk -F/ '{ print NF - 1 " " $0 }' | sort -n | awk '{ print $2 }' + ( + export LC_ALL=C + awk -F/ '{ print NF - 1 " " $0 }' | sort -n | awk '{ print $2 }' + ) } function bfs_diff() { diff --git a/tests/test_0069.out b/tests/test_0069.out index d06572a..73d0ff3 100644 --- a/tests/test_0069.out +++ b/tests/test_0069.out @@ -1,28 +1,28 @@ -- -- -, -, !- !- (- (- ) ) -./! -./! -./( -./( --/a --/a -(-/c -(-/c +, +, +- +- !-/e !-/e -,/f -,/f +(-/c +(-/c )/g )/g -./(/b -./(/b +,/f +,/f +-/a +-/a +./! +./! +./( +./( ./!/d ./!/d +./(/b +./(/b diff --git a/tests/test_0070.out b/tests/test_0070.out index d06572a..73d0ff3 100644 --- a/tests/test_0070.out +++ b/tests/test_0070.out @@ -1,28 +1,28 @@ -- -- -, -, !- !- (- (- ) ) -./! -./! -./( -./( --/a --/a -(-/c -(-/c +, +, +- +- !-/e !-/e -,/f -,/f +(-/c +(-/c )/g )/g -./(/b -./(/b +,/f +,/f +-/a +-/a +./! +./! +./( +./( ./!/d ./!/d +./(/b +./(/b diff --git a/tests/test_0072.out b/tests/test_0072.out index bbe4f7f..d4fb943 100644 --- a/tests/test_0072.out +++ b/tests/test_0072.out @@ -1,15 +1,15 @@ . -./- -./, ./! ./!- ./( ./(- ./) -./-/a -./(/b -./(-/c -./!/d +./, +./- ./!-/e -./,/f +./!/d +./(-/c +./(/b ./)/g +./,/f +./-/a -- cgit v1.2.3