[commit: testsuite] ghc-7.6: Don't allow '/' characters in test names (040b450)

Ian Lynagh igloo at earth.li
Thu Jan 24 20:11:53 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : ghc-7.6

http://hackage.haskell.org/trac/ghc/changeset/040b45010f4099c74970733017dced772c3d6b90

>---------------------------------------------------------------

commit 040b45010f4099c74970733017dced772c3d6b90
Author: Ian Lynagh <ian at well-typed.com>
Date:   Thu Jan 24 17:04:40 2013 +0000

    Don't allow '/' characters in test names

>---------------------------------------------------------------

 driver/testlib.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/driver/testlib.py b/driver/testlib.py
index 575b0a6..270e5ce 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -562,7 +562,7 @@ def test (name, setup, func, args):
     global allTestNames
     if name in allTestNames:
         framework_fail(name, 'duplicate', 'There are multiple tests with this name')
-    if not re.match('^[a-zA-Z0-9][a-zA-Z0-9._/-]*$', name):
+    if not re.match('^[a-zA-Z0-9][a-zA-Z0-9._-]*$', name):
         framework_fail(name, 'bad_name', 'This test has an invalid name')
     myTestOpts = copy.copy(thisdir_testopts)
     allTests += [lambda : runTest(myTestOpts, name, setup, func, args)]





More information about the ghc-commits mailing list