[commit: testsuite] master: ghcilink004 fails when ghci is dynamic (it tries to load a .a file) (a73a72c)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/a73a72cf24f4588eb35a01e58f6a23b7af30d743

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

commit a73a72cf24f4588eb35a01e58f6a23b7af30d743
Author: Ian Lynagh <[email protected]>
Date:   Fri Oct 12 22:44:19 2012 +0100

    ghcilink004 fails when ghci is dynamic (it tries to load a .a file)

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

 tests/ghci/linking/all.T |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/ghci/linking/all.T b/tests/ghci/linking/all.T
index ee68e13..39be389 100644
--- a/tests/ghci/linking/all.T
+++ b/tests/ghci/linking/all.T
@@ -19,7 +19,8 @@ test('ghcilink003',
      ['$MAKE -s --no-print-directory ghcilink003'])
 
 test('ghcilink004',
-     extra_clean(['dir004/*','dir004']),
+     [if_ghci_dynamic(expect_fail), # dynamic ghci can't load '.a's
+      extra_clean(['dir004/*','dir004'])],
      run_command,
      ['$MAKE -s --no-print-directory ghcilink004'])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.