Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
8d715e62
Commit
8d715e62
authored
Jan 25, 2013
by
ian@well-typed.com
Browse files
Make numeric-only test names a framework failure
parent
4b7060c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/driver/testlib.py
View file @
8d715e62
...
...
@@ -645,7 +645,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-Z
0-9
][a-zA-Z0-9._-]*$'
,
name
):
if
not
re
.
match
(
'^[
0-9]*[
a-zA-Z][a-zA-Z0-9._-]*$'
,
name
):
framework_fail
(
name
,
'bad_name'
,
'This test has an invalid name'
)
myTestOpts
=
copy
.
copy
(
thisdir_testopts
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment