[commit: ghc] master: testsuite: Skip T703 on non-Linux platforms (4faab14)

git at git.haskell.org git at git.haskell.org
Tue Dec 11 23:22:30 UTC 2018


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

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

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

commit 4faab14bcf8a892414306a61bcde02d82cf735be
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Dec 11 17:44:43 2018 -0500

    testsuite: Skip T703 on non-Linux platforms
    
    While the test is in principle applicable to many platforms, the current
    implementation requires readelf, which we can only assume is present on
    ELF-based platforms (e.g. Linux).
    
    See Trac #703.


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

4faab14bcf8a892414306a61bcde02d82cf735be
 testsuite/tests/driver/all.T | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T
index a33dba1..02eeeb3 100644
--- a/testsuite/tests/driver/all.T
+++ b/testsuite/tests/driver/all.T
@@ -198,7 +198,9 @@ test('T8959a',
      run_command,
      ['$MAKE -s --no-print-directory T8959a'])
 
-test('T703', normal, run_command, ['$MAKE -s --no-print-directory T703'])
+# Requires readelf
+test('T703', unless(opsys('linux'), skip),
+     run_command, ['$MAKE -s --no-print-directory T703'])
 test('T2182', normal, run_command, ['$MAKE -s --no-print-directory T2182'])
 test('T8101', normal, compile, ['-Wall -fno-code'])
 test('T8101b', normal, multimod_compile,



More information about the ghc-commits mailing list