aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2016-05-05 21:41:34 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2016-05-05 21:41:34 +0200
commit0bf89d9be08e12b668c3ab57caf1a4a4fac4ce72 (patch)
tree81f32df8bc17d26cac6aa3c47a8116019d1f92ef /test
parenttesting (diff)
downloadfirejail-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).
Diffstat (limited to 'test')
-rwxr-xr-xtest/fs/private-etc.exp14
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}
16sleep 1 16sleep 1
17 17
18send -- "ls -al /etc\r" 18send -- "LC_ALL=C ls -al /etc\r"
19expect { 19expect {
20 timeout {puts "TESTING ERROR 3\n";exit} 20 timeout {puts "TESTING ERROR 3\n";exit}
21 "group" 21 "X11"
22} 22}
23expect { 23expect {
24 timeout {puts "TESTING ERROR 4\n";exit} 24 timeout {puts "TESTING ERROR 4\n";exit}
25 "passwd" 25 "group"
26} 26}
27expect { 27expect {
28 timeout {puts "TESTING ERROR 5\n";exit} 28 timeout {puts "TESTING ERROR 5\n";exit}
29 "resolv.conf" 29 "passwd"
30} 30}
31expect { 31expect {
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
36send -- "ls -al /etc\r" 36send -- "ls -al /etc; echo done\r"
37expect { 37expect {
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
43sleep 1 43sleep 1