aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/test/odbc_test_lib.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2011-09-22 10:16:59 +0200
committerIngela Anderton Andin <[email protected]>2011-09-26 14:57:38 +0200
commit101d00d11e4e2c24cc5d54739e348aa34527e315 (patch)
tree7ec31a265d00af601aa0fa1219afa49861acbae5 /lib/odbc/test/odbc_test_lib.erl
parent3d31498a0d08a9cf572fc966c025ed44ef15e831 (diff)
downloadotp-101d00d11e4e2c24cc5d54739e348aa34527e315.tar.gz
otp-101d00d11e4e2c24cc5d54739e348aa34527e315.tar.bz2
otp-101d00d11e4e2c24cc5d54739e348aa34527e315.zip
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.erl29
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.