diff options
author | archblob <fcsernik@gmail.com> | 2014-09-16 07:56:09 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-09-16 07:56:09 -0500 |
commit | 52eab67a99dd928204b730355245233fa96fa24d (patch) | |
tree | 221af20e20a4f6b605c8e97d643d5811bbf10ba3 /testsuite/tests/ghci | |
parent | fe9f7e40844802443315ef2238c4cdefda756b62 (diff) | |
download | haskell-52eab67a99dd928204b730355245233fa96fa24d.tar.gz |
Add the ability to :set -l{foo} in ghci, fix #1407.
Summary:
The dynamic linking code was already there but it was not called
on flag changes in ghci.
Test Plan: validate
Reviewers: hvr, simonmar, austin
Reviewed By: austin
Subscribers: simonmar, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D194
GHC Trac Issues: #1407
Diffstat (limited to 'testsuite/tests/ghci')
-rw-r--r-- | testsuite/tests/ghci/linking/T1407.script | 4 | ||||
-rw-r--r-- | testsuite/tests/ghci/linking/all.T | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/linking/T1407.script b/testsuite/tests/ghci/linking/T1407.script new file mode 100644 index 0000000000..97164359d0 --- /dev/null +++ b/testsuite/tests/ghci/linking/T1407.script @@ -0,0 +1,4 @@ +:set -ldl +import Foreign +import Foreign.C.String +foreign import ccall "dlerror" dle :: IO CString diff --git a/testsuite/tests/ghci/linking/all.T b/testsuite/tests/ghci/linking/all.T index eba2b8aaf5..6675a539ec 100644 --- a/testsuite/tests/ghci/linking/all.T +++ b/testsuite/tests/ghci/linking/all.T @@ -47,3 +47,5 @@ test('T3333', unless(opsys('linux') or ghci_dynamic(), expect_broken(3333))], run_command, ['$MAKE -s --no-print-directory T3333']) + +test('T1407', normal, ghci_script, ['T1407.script']) |