From 0bf89d9be08e12b668c3ab57caf1a4a4fac4ce72 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Thu, 5 May 2016 21:41:34 +0200 Subject: 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). --- test/fs/private-etc.exp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/fs/private-etc.exp') 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 { } sleep 1 -send -- "ls -al /etc\r" +send -- "LC_ALL=C ls -al /etc\r" expect { timeout {puts "TESTING ERROR 3\n";exit} - "group" + "X11" } expect { timeout {puts "TESTING ERROR 4\n";exit} - "passwd" + "group" } expect { timeout {puts "TESTING ERROR 5\n";exit} - "resolv.conf" + "passwd" } expect { timeout {puts "TESTING ERROR 6\n";exit} - "X11" + "resolv.conf" } -send -- "ls -al /etc\r" +send -- "ls -al /etc; echo done\r" expect { timeout {puts "TESTING ERROR 7\n";exit} "shadow" {puts "TESTING ERROR 8\n";exit} - "X11" + "done" } sleep 1 -- cgit v1.2.3-54-g00ecf