diff options
author | 2016-05-05 21:41:34 +0200 | |
---|---|---|
committer | 2016-05-05 21:41:34 +0200 | |
commit | 0bf89d9be08e12b668c3ab57caf1a4a4fac4ce72 (patch) | |
tree | 81f32df8bc17d26cac6aa3c47a8116019d1f92ef | |
parent | testing (diff) | |
download | firejail-0bf89d9be08e12b668c3ab57caf1a4a4fac4ce72.tar.gz firejail-0bf89d9be08e12b668c3ab57caf1a4a4fac4ce72.tar.zst firejail-0bf89d9be08e12b668c3ab57caf1a4a4fac4ce72.zip |
Use locale-independent sorting
On systems without installed/configured locales, the file
list is sorted by byte comparison.
On some locales it is sorted differently (e.g. X11 at the end).
-rwxr-xr-x | test/fs/private-etc.exp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/fs/private-etc.exp b/test/fs/private-etc.exp index e5a006585..3b4f3eb2b 100755 --- a/test/fs/private-etc.exp +++ b/test/fs/private-etc.exp | |||
@@ -15,29 +15,29 @@ expect { | |||
15 | } | 15 | } |
16 | sleep 1 | 16 | sleep 1 |
17 | 17 | ||
18 | send -- "ls -al /etc\r" | 18 | send -- "LC_ALL=C ls -al /etc\r" |
19 | expect { | 19 | expect { |
20 | timeout {puts "TESTING ERROR 3\n";exit} | 20 | timeout {puts "TESTING ERROR 3\n";exit} |
21 | "group" | 21 | "X11" |
22 | } | 22 | } |
23 | expect { | 23 | expect { |
24 | timeout {puts "TESTING ERROR 4\n";exit} | 24 | timeout {puts "TESTING ERROR 4\n";exit} |
25 | "passwd" | 25 | "group" |
26 | } | 26 | } |
27 | expect { | 27 | expect { |
28 | timeout {puts "TESTING ERROR 5\n";exit} | 28 | timeout {puts "TESTING ERROR 5\n";exit} |
29 | "resolv.conf" | 29 | "passwd" |
30 | } | 30 | } |
31 | expect { | 31 | expect { |
32 | timeout {puts "TESTING ERROR 6\n";exit} | 32 | timeout {puts "TESTING ERROR 6\n";exit} |
33 | "X11" | 33 | "resolv.conf" |
34 | } | 34 | } |
35 | 35 | ||
36 | send -- "ls -al /etc\r" | 36 | send -- "ls -al /etc; echo done\r" |
37 | expect { | 37 | expect { |
38 | timeout {puts "TESTING ERROR 7\n";exit} | 38 | timeout {puts "TESTING ERROR 7\n";exit} |
39 | "shadow" {puts "TESTING ERROR 8\n";exit} | 39 | "shadow" {puts "TESTING ERROR 8\n";exit} |
40 | "X11" | 40 | "done" |
41 | } | 41 | } |
42 | 42 | ||
43 | sleep 1 | 43 | sleep 1 |