Skip to content

Commit

Permalink
fixed problem in tests where Mac OS X sort gives different results th…
Browse files Browse the repository at this point in the history
…an GNU sort under Linux
  • Loading branch information
rsdoiel committed Dec 11, 2017
1 parent ba163ba commit e817b12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test_cmds.bash
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,11 @@ function test_jsonrange(){
assert_empty "test_jsonrange (result1)" "$R"

if [ -f temp.txt ]; then rm temp.txt; fi
if [ -f temp2.txt ]; then rm temp2.txt; fi
bin/jsonrange -i how-to/jsonrange/person.json -values | sort > temp.txt
sort "how-to/jsonrange/expected2.txt" > temp2.txt
assert_exists "test_jsonrange (expected2)" temp.txt
R=$(cmp how-to/jsonrange/expected2.txt temp.txt)
R=$(cmp temp2.txt temp.txt)
assert_empty "test_jsonrange (expected2)" "$R"

if [ -f temp.txt ]; then rm temp.txt; fi
Expand Down Expand Up @@ -694,6 +696,7 @@ function test_jsonrange(){
assert_empty "test_jsonrange (expected9)" "$R"

if [ -f temp.txt ]; then rm temp.txt; fi
if [ -f temp2.txt ]; then rm temp2.txt; fi
echo "test_jsonrange OK";
}

Expand Down

0 comments on commit e817b12

Please sign in to comment.