[commit: ghc] master: testsuite: Only run recomp015 on ELF-based platforms (ceaf0f4)

git at git.haskell.org git at git.haskell.org
Fri Dec 11 22:17:26 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/ceaf0f4683a3e0ba85ae420956cfc394824e9a38/ghc

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

commit ceaf0f4683a3e0ba85ae420956cfc394824e9a38
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Fri Dec 11 22:41:23 2015 +0100

    testsuite: Only run recomp015 on ELF-based platforms
    
    It fails on OS X with hundreds of messages of the form,
    ```
    ManySections.s:196576:10: error:
         error: mach-o section specifier uses an unknown section type
    .section s65525,"", at progbits
             ^
    
    ManySections.s:196579:10: error:
         error: mach-o section specifier uses an unknown section type
    .section s65526,"", at progbits
    ```
    
    It fails on Windows with messages of the form,
    ```
    ManySections.s:196579:10: error:
         Error: junk at the end of line, first unrecognized character is ','
    ```
    
    Test Plan: Validate
    
    Reviewers: hsyl20, thomie, austin
    
    Reviewed By: thomie, austin
    
    Differential Revision: https://phabricator.haskell.org/D1601
    
    GHC Trac Issues: #11022


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

ceaf0f4683a3e0ba85ae420956cfc394824e9a38
 testsuite/tests/driver/recomp015/all.T | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testsuite/tests/driver/recomp015/all.T b/testsuite/tests/driver/recomp015/all.T
index ff86caf..4ab3e88 100644
--- a/testsuite/tests/driver/recomp015/all.T
+++ b/testsuite/tests/driver/recomp015/all.T
@@ -1,7 +1,8 @@
 # Test for the ELF parser: more than 0xff00 sections (use different ELF fields)
 
 test('recomp015',
-     [ clean_cmd('$MAKE -s clean') ],
+     [ clean_cmd('$MAKE -s clean'),
+       unless(opsys('linux') or opsys('solaris2') or opsys('openbsd'), skip)],
      run_command,
      ['$MAKE -s --no-print-directory recomp015'])
 



More information about the ghc-commits mailing list