tests: fix fake_ntlm to run with a dynamic log directory

Ref: #10818
This commit is contained in:
Dan Fandrich 2023-03-29 12:20:02 -07:00
parent 8a298119f1
commit 0bdb95ecbf
8 changed files with 27 additions and 19 deletions

View file

@ -290,7 +290,7 @@ static int ProcessRequest(struct httprequest *req)
req->testno, req->partno);
logmsg("%s", logbuf);
stream = test2fopen(req->testno);
stream = test2fopen(req->testno, logdir);
if(!stream) {
int error = errno;
@ -858,7 +858,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
count = strlen(buffer);
}
else {
FILE *stream = test2fopen(req->testno);
FILE *stream = test2fopen(req->testno, logdir);
char partbuf[80]="data";
if(0 != req->partno)
msnprintf(partbuf, sizeof(partbuf), "data%ld", req->partno);
@ -884,7 +884,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
}
/* re-open the same file again */
stream = test2fopen(req->testno);
stream = test2fopen(req->testno, logdir);
if(!stream) {
error = errno;
logmsg("fopen() failed with error: %d %s", error, strerror(error));