Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,321
Issues
4,321
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
366
Merge Requests
366
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
ec56be8f
Commit
ec56be8f
authored
Nov 10, 2012
by
ian@well-typed.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add if_compiler_debugged to testsuite driver
arrowfail001 currently fails only when DEBUG is defined.
parent
16f685e2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
1 deletion
+15
-1
testsuite/config/ghc
testsuite/config/ghc
+2
-0
testsuite/driver/testlib.py
testsuite/driver/testlib.py
+6
-0
testsuite/mk/ghc-config.hs
testsuite/mk/ghc-config.hs
+1
-0
testsuite/mk/test.mk
testsuite/mk/test.mk
+2
-0
testsuite/tests/arrows/should_fail/all.T
testsuite/tests/arrows/should_fail/all.T
+4
-1
No files found.
testsuite/config/ghc
View file @
ec56be8f
...
...
@@ -35,6 +35,8 @@ if (ghc_with_native_codegen == 1):
config.compile_ways.append('optasm')
config.run_ways.append('optasm')
config.compiler_debugged = ghc_debugged
if (ghc_with_vanilla == 1):
config.have_vanilla = True
...
...
testsuite/driver/testlib.py
View file @
ec56be8f
...
...
@@ -420,6 +420,12 @@ def if_compiler_ge( compiler, version, f ):
else
:
return
normal
def
if_compiler_debugged
(
f
):
if
config
.
compiler_debugged
:
return
f
else
:
return
normal
def
namebase
(
nb
):
return
lambda
opts
,
nb
=
nb
:
_namebase
(
opts
,
nb
)
...
...
testsuite/mk/ghc-config.hs
View file @
ec56be8f
...
...
@@ -17,6 +17,7 @@ main = do
let
fields
=
read
info
::
[(
String
,
String
)]
getGhcFieldOrFail
fields
"GhcStage"
"Stage"
getGhcFieldOrFail
fields
"GhcDebugged"
"Debug on"
getGhcFieldOrFail
fields
"GhcWithNativeCodeGen"
"Have native code generator"
getGhcFieldOrFail
fields
"GhcWithInterpreter"
"Have interpreter"
getGhcFieldOrFail
fields
"GhcUnregisterised"
"Unregisterised"
...
...
testsuite/mk/test.mk
View file @
ec56be8f
...
...
@@ -39,6 +39,8 @@ endif
RUNTEST_OPTS
+=
-e
ghc_compiler_always_flags
=
"'
$(TEST_HC_OPTS)
'"
RUNTEST_OPTS
+=
-e
ghc_debugged
=
$(GhcDebugged)
ifeq
"$(GhcWithNativeCodeGen)" "YES"
RUNTEST_OPTS
+=
-e
ghc_with_native_codegen
=
1
else
...
...
testsuite/tests/arrows/should_fail/all.T
View file @
ec56be8f
setTestOpts
(
only_compiler_types
(['
ghc
']))
test
('
arrowfail001
',
expect_broken
(
5267
),
compile_fail
,
[''])
test
('
arrowfail001
',
if_compiler_debugged
(
expect_broken
(
5267
)),
compile_fail
,
[''])
# arrowfail001 gets an ASSERT error in the stage1 compiler
# because we simply are not typechecking arrow commands
# correcly. See Trac #5267, #5609, #5605
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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