tests/run-tests.py
branchstable
changeset 1320 b82811d8ce22
parent 1319 b5ce8c72ddf9
child 1321 79f68c0ed71e
--- a/tests/run-tests.py	Thu Jan 16 12:06:49 2014 +0100
+++ b/tests/run-tests.py	Thu Jan 16 12:08:29 2014 +0100
@@ -638,6 +638,8 @@
             return rematch(el[:-6], l)
         if el.endswith(" (glob)\n"):
             return globmatch(el[:-8], l)
+        if os.altsep and l.replace('\\', '/') == el:
+            return '+glob'
     return False
 
 def tsttest(test, wd, options, replacements, env):
@@ -791,7 +793,12 @@
             if pos in expected and expected[pos]:
                 el = expected[pos].pop(0)
 
-            if linematch(el, lout):
+            r = linematch(el, lout)
+            if isinstance(r, str):
+                if r == '+glob':
+                    lout = el[:-1] + ' (glob)\n'
+                r = False
+            if r:
                 postout.append("  " + el)
             else:
                 if needescape(lout):