Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
8933b4e3
Commit
8933b4e3
authored
Oct 12, 2012
by
ian@well-typed.com
Browse files
ghcilink001 is expected to fail when ghci is dynamic
dynamic ghci can't load .a files
parent
18760482
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/config/ghc
View file @
8933b4e3
...
...
@@ -55,7 +55,8 @@ if (ghc_with_threaded_rts == 1):
if (ghc_with_dynamic_rts == 1):
config.have_shared_libs = True
if (ghc_dynamic_by_default == 1):
config.ghc_dynamic_by_default = ghc_dynamic_by_default
if (ghc_dynamic_by_default):
config.run_ways.append('static')
else:
if (ghc_with_dynamic_rts == 1):
...
...
testsuite/driver/testlib.py
View file @
8933b4e3
...
...
@@ -356,6 +356,12 @@ def if_cygwin( f ):
# ---
def
if_ghci_dynamic
(
f
):
if
config
.
ghc_dynamic_by_default
:
return
f
else
:
return
normal
def
if_in_tree_compiler
(
f
):
if
config
.
in_tree_compiler
:
return
f
...
...
testsuite/mk/test.mk
View file @
8933b4e3
...
...
@@ -81,9 +81,9 @@ RUNTEST_OPTS += -e ghc_unregisterised=0
endif
ifeq
"$(GhcDynamicByDefault)" "YES"
RUNTEST_OPTS
+=
-e
ghc_dynamic_by_default
=
1
RUNTEST_OPTS
+=
-e
ghc_dynamic_by_default
=
True
else
RUNTEST_OPTS
+=
-e
ghc_dynamic_by_default
=
0
RUNTEST_OPTS
+=
-e
ghc_dynamic_by_default
=
False
endif
ifeq
"$(GhcWithSMP)" "YES"
...
...
testsuite/tests/ghci/linking/all.T
View file @
8933b4e3
test
('
ghcilink001
',
extra_clean
(['
dir001/*
','
dir001
']),
[
if_ghci_dynamic
(
expect_fail
),
# dynamic ghci can't load '.a's
extra_clean
(['
dir001/*
','
dir001
'])],
run_command
,
['
$MAKE -s --no-print-directory ghcilink001
'])
...
...
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