summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-11-22 22:06:06 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-11-22 22:06:06 -0500
commitd761a18c3b1a38390ae0c23fea203bd23f509d84 (patch)
treec70d3eaf799fe81ba8a5804b3efb6248d7db7e59
parent13b8b78cf1082c14eb689edf64337a0af9cd0f7f (diff)
downloadbfs-d761a18c3b1a38390ae0c23fea203bd23f509d84.tar.xz
tests: Mkae LC_ALL=C apply to the whole pipeline when sorting.
-rwxr-xr-xtests.sh5
-rw-r--r--tests/test_0069.out32
-rw-r--r--tests/test_0070.out32
-rw-r--r--tests/test_0072.out14
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