diff options
author | Henrik Nord <[email protected]> | 2011-08-25 10:58:33 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2011-08-25 10:58:33 +0200 |
commit | 756a93ca2064b9e0eba3d82a7bd37aeae0f39be1 (patch) | |
tree | ffbbbfd2749a522c7b1f70ee4f7b1fa0a5e189f3 /lib/odbc/test/odbc_start_SUITE.erl | |
parent | 48eb259aa2d6c7c5d1ddebbfbcefae5e3dafc49c (diff) | |
parent | d48eaa0731017e5cdadca0af77ac14cd949b6c67 (diff) | |
download | otp-756a93ca2064b9e0eba3d82a7bd37aeae0f39be1.tar.gz otp-756a93ca2064b9e0eba3d82a7bd37aeae0f39be1.tar.bz2 otp-756a93ca2064b9e0eba3d82a7bd37aeae0f39be1.zip |
Merge branch 'dev' into major
Diffstat (limited to 'lib/odbc/test/odbc_start_SUITE.erl')
-rw-r--r-- | lib/odbc/test/odbc_start_SUITE.erl | 17 |
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. %%-------------------------------------------------------------------- |