[exim-dev] [Bug 1226] testsuite trips on ls output

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 1226] testsuite trips on ls output
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1226

Jeremy Harris <jgh146exb@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED





--- Comment #1 from Jeremy Harris <jgh146exb@???> 2012-03-28 20:56:43 ---
Suggested fix: apply the following diff to the "runtest" script,
then run the 0240 testcase and accept the new output
(there should now always be a trailing space, but no ACL indicator).

--------%cut here%--------
diff --git a/test/runtest b/test/runtest
index 6a6aadd..165351c 100755
--- a/test/runtest
+++ b/test/runtest
@@ -593,7 +593,13 @@ RESET_AFTER_EXTRA_LINE_READ:

# ======== Output from ls ========
# Different operating systems use different spacing on long output
- s/ +/ /g if /^[-rwd]{10} /;
+ #s/ +/ /g if /^[-rwd]{10} /;
+ # (Bug 1226) SUSv3 allows a trailing printable char for modified access
method control.
+ # Handle only the Gnu and MacOS space, dot, plus and at-sign. A full
[[:graph:]]
+ # unfortunately matches a non-ls linefull of dashes.
+ # Allow the case where we've already picked out the file protection bits.
+ s/^([-d]([-r][-w][-stx]){3})[.+@]?( +|$)/\1 /;
+


# ======== Message sizes =========
--------%cut here%--------


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email