Fixed TestConnect
* Due to a typo (and missing argument checks in sample-server) the command line for the test was invalid.
This commit is contained in:
parent
af8d1e5690
commit
ad86192ac6
@ -260,13 +260,13 @@ static int testSuccess(int port)
|
||||
goto fail;
|
||||
|
||||
// Start sample server locally.
|
||||
commandLineLen = strlen(exe) + strlen("--local-only --port=XXXXX") + 1;
|
||||
commandLineLen = strlen(exe) + strlen("--port=XXXXX") + 1;
|
||||
commandLine = malloc(commandLineLen);
|
||||
|
||||
if (!commandLine)
|
||||
goto fail;
|
||||
|
||||
_snprintf(commandLine, commandLineLen, "%s --local-only --port=%d", exe, port);
|
||||
_snprintf(commandLine, commandLineLen, "%s --port=%d", exe, port);
|
||||
memset(&si, 0, sizeof(si));
|
||||
si.cb = sizeof(si);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user