diff options
author | Ingela Anderton Andin <[email protected]> | 2011-09-28 09:10:48 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2011-09-28 09:10:48 +0200 |
commit | cbb7313a14f83b3947c9d2067f5ebcabc0c0b3a0 (patch) | |
tree | feff6930a98a98c23d1144ffeb969fc723cff770 /lib/odbc/test/odbc_test_lib.erl | |
parent | 7d936aabd1573c0a7d3bd5bc94e4996e60ba2f72 (diff) | |
parent | 101d00d11e4e2c24cc5d54739e348aa34527e315 (diff) | |
download | otp-cbb7313a14f83b3947c9d2067f5ebcabc0c0b3a0.tar.gz otp-cbb7313a14f83b3947c9d2067f5ebcabc0c0b3a0.tar.bz2 otp-cbb7313a14f83b3947c9d2067f5ebcabc0c0b3a0.zip |
Merge branch 'ia/odbc/temp-disable-mac-tests' into dev
* ia/odbc/temp-disable-mac-tests:
Temporary disable tests on MAC due to issus with the MAC ODBC drivers
Diffstat (limited to 'lib/odbc/test/odbc_test_lib.erl')
-rw-r--r-- | lib/odbc/test/odbc_test_lib.erl | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/lib/odbc/test/odbc_test_lib.erl b/lib/odbc/test/odbc_test_lib.erl index 4d7d1ae2fa..a8439d5fb6 100644 --- a/lib/odbc/test/odbc_test_lib.erl +++ b/lib/odbc/test/odbc_test_lib.erl @@ -36,18 +36,25 @@ match_float(Float, Match, Delta) -> (Float < Match + Delta) and (Float > Match - Delta). odbc_check() -> - case erlang:system_info({wordsize, external}) of - 4 -> - ok; - Other -> - case os:type() of - {unix, linux} -> + case os:type() of + {unix,darwin} -> + lists:flatten( + io_lib:format("Currently we have no working drivers for MAC", + [])); + _ -> + case erlang:system_info({wordsize, external}) of + 4 -> ok; - Platform -> - lists:flatten( - io_lib:format("Word on platform ~w size" - " ~w not supported", [Other, - Platform])) + Other -> + case os:type() of + {unix, linux} -> + ok; + Platform -> + lists:flatten( + io_lib:format("Word on platform ~w size" + " ~w not supported", [Other, + Platform])) + end end end. |