diff --git a/parser/tst/dirtest.sh b/parser/tst/dirtest.sh index 8c94dbd68..95c108371 100755 --- a/parser/tst/dirtest.sh +++ b/parser/tst/dirtest.sh @@ -31,8 +31,9 @@ do_tst() { shift 2 #global tmpdir - ${APPARMOR_PARSER} "$@" > "$tmpdir/out" 2>/dev/null + ${APPARMOR_PARSER} "$@" > "$tmpdir/out.unsorted" 2>/dev/null rc=$? + LC_ALL=C sort "$tmpdir/out.unsorted" > "$tmpdir/out" if [ $rc -ne 0 ] && [ "$expected" != "fail" ] ; then echo "failed: expected \"$expected\" but parser returned error" return 1 diff --git a/parser/tst/dirtest/dirtest.out b/parser/tst/dirtest/dirtest.out index e82188b84..5b4cc30aa 100644 --- a/parser/tst/dirtest/dirtest.out +++ b/parser/tst/dirtest/dirtest.out @@ -1,3 +1,3 @@ -good_target a_profile b_profile +good_target