Skip to content

Commit

Permalink
try to enable debug
Browse files Browse the repository at this point in the history
  • Loading branch information
freddy77 committed Dec 7, 2024
1 parent 2da0eae commit 2df7712
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/odbc/unittests/timeout3.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ main(void)

/* this test requires version 7.0, avoid to override externally */
setenv("TDSVER", "7.0", 1);
setenv("TDSDUMP", "stdout", 1);
setenv("TDSDUMPCONFIG", "stdout", 1);

for (port = 12340; port < 12350; ++port)
if (!init_fake_server(port))
Expand All @@ -191,6 +193,7 @@ main(void)
sprintf(conn, "DRIVER=FreeTDS;SERVER=127.0.0.1;Port=%d;TDS_Version=7.0;UID=test;PWD=test;DATABASE=tempdb;", port);
start_time = time(NULL);
CHKDriverConnect(NULL, T(conn), SQL_NTS, tmp, TDS_VECTOR_SIZE(tmp), &len, SQL_DRIVER_NOPROMPT, "E");
printf("XXX\n");
end_time = time(NULL);

memset(sqlstate, 'X', sizeof(sqlstate));
Expand Down

0 comments on commit 2df7712

Please sign in to comment.