aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/test/odbc_start_SUITE.erl
diff options
context:
space:
mode:
authorMarcus Arendt <[email protected]>2014-11-26 11:00:33 +0100
committerMarcus Arendt <[email protected]>2014-11-26 11:00:33 +0100
commit2eac7d839b601d1f043aa711f2a18ecfbd83048d (patch)
tree4d8ae1f42a6e8f317fcb4fd41d1efff8e908b844 /lib/odbc/test/odbc_start_SUITE.erl
parentf4dce072bab24674295a90d06786349a252a0891 (diff)
parent87d52a6a66ae9c8a0c7ea814360ee39f728eeaf7 (diff)
downloadotp-2eac7d839b601d1f043aa711f2a18ecfbd83048d.tar.gz
otp-2eac7d839b601d1f043aa711f2a18ecfbd83048d.tar.bz2
otp-2eac7d839b601d1f043aa711f2a18ecfbd83048d.zip
Merge branch 'RumataEstor/odbc-sign-bug' into maint
* RumataEstor/odbc-sign-bug: add odbc:start/stop in testcase Fix signedness bug Fix odbcserver warnings Delete odbcserver unused variables Test to reveal odbcserver protocol bug
Diffstat (limited to 'lib/odbc/test/odbc_start_SUITE.erl')
-rw-r--r--lib/odbc/test/odbc_start_SUITE.erl15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/odbc/test/odbc_start_SUITE.erl b/lib/odbc/test/odbc_start_SUITE.erl
index a7bb1d0ffe..d75e615ed4 100644
--- a/lib/odbc/test/odbc_start_SUITE.erl
+++ b/lib/odbc/test/odbc_start_SUITE.erl
@@ -109,8 +109,8 @@ suite() -> [{ct_hooks,[ts_install_cth]}].
all() ->
case odbc_test_lib:odbc_check() of
- ok -> [app, appup, start];
- Other -> [app, appup]
+ ok -> [app, appup, start, long_connection_line];
+ _Other -> [app, appup]
end.
groups() ->
@@ -168,3 +168,14 @@ start_odbc(Type) ->
{error, odbc_not_started} ->
test_server:fail(start_failed)
end.
+
+
+long_connection_line(doc)->
+ ["Test a connection line longer than 127 characters"];
+long_connection_line(suite) -> [];
+long_connection_line(_Config) ->
+ odbc:start(),
+ String133 = "unknown_odbc_parameter=01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789",
+ {error, Reason} = odbc:connect(String133, []),
+ odbc:stop(),
+ ct:pal("Driver error reason: ~p",[Reason]).