aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/test/odbc_start_SUITE.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-08-24 16:44:16 +0200
committerAnders Svensson <[email protected]>2011-08-24 16:44:16 +0200
commit3536111957c809976ed3e7091e85960990be904d (patch)
treeaafc4cf4f996ece272e6b9c3d2366061c34f08da /lib/odbc/test/odbc_start_SUITE.erl
parenta7c0e439ee84d25ce18f65959be06315063a7de8 (diff)
parent0c09797c725c98e5466bf6c575b7be4f2fc0e813 (diff)
downloadotp-3536111957c809976ed3e7091e85960990be904d.tar.gz
otp-3536111957c809976ed3e7091e85960990be904d.tar.bz2
otp-3536111957c809976ed3e7091e85960990be904d.zip
Merge remote branch 'upstream/dev' into dev
Diffstat (limited to 'lib/odbc/test/odbc_start_SUITE.erl')
-rw-r--r--lib/odbc/test/odbc_start_SUITE.erl17
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/odbc/test/odbc_start_SUITE.erl b/lib/odbc/test/odbc_start_SUITE.erl
index 440c0ca921..e3a3440559 100644
--- a/lib/odbc/test/odbc_start_SUITE.erl
+++ b/lib/odbc/test/odbc_start_SUITE.erl
@@ -39,11 +39,18 @@
%% variable, but should NOT alter/remove any existing entries.
%%--------------------------------------------------------------------
init_per_suite(Config) ->
- case code:which(odbc) of
- non_existing ->
- {skip, "No ODBC built"};
- _ ->
- [{tableName, odbc_test_lib:unique_table_name()} | Config]
+ case odbc_test_lib:skip() of
+ true ->
+ {skip, "ODBC not supported"};
+ false ->
+ case code:which(odbc) of
+ non_existing ->
+ {skip, "No ODBC built"};
+ _ ->
+ %% Make sure odbc is not already started
+ odbc:stop(),
+ [{tableName, odbc_test_lib:unique_table_name()} | Config]
+ end
end.
%%--------------------------------------------------------------------