diff options
author | Kostis Sagonas <[email protected]> | 2014-02-03 01:28:01 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-02-24 17:23:12 +0100 |
commit | 54cfcfd2c100525dbc7f856c459be87e56354066 (patch) | |
tree | 8895d2f1af79744724d884d7fa9db7179ddb0f7c /lib | |
parent | a4a535e84b1637c21827783fa52831334303a427 (diff) | |
download | otp-54cfcfd2c100525dbc7f856c459be87e56354066.tar.gz otp-54cfcfd2c100525dbc7f856c459be87e56354066.tar.bz2 otp-54cfcfd2c100525dbc7f856c459be87e56354066.zip |
Add check so that tests are skipped if HiPE is not available
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hipe/test/hipe_testsuite_driver.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hipe/test/hipe_testsuite_driver.erl b/lib/hipe/test/hipe_testsuite_driver.erl index 72605f9c2f..7e904fcb88 100644 --- a/lib/hipe/test/hipe_testsuite_driver.erl +++ b/lib/hipe/test/hipe_testsuite_driver.erl @@ -121,7 +121,10 @@ write_header(#suite{suitename = SuiteName, outputfile = OutputFile, "init_per_suite() ->\n" " [].\n\n" "init_per_suite(Config) ->\n" - " Config.\n\n" + " case erlang:system_info(hipe_architecture) of\n" + " undefined -> {skip, \"HiPE not available or enabled\"};\n" + " _ -> Config\n" + " end.\n\n" "end_per_suite(_Config) ->\n" " ok.\n\n" "all() ->\n" |