test: fix assigment and compare error

Fixes #4898
This commit is contained in:
Wim Taymans 2025-09-16 10:42:44 +02:00
parent 336b2dbbc2
commit af6571d0c7

View file

@ -355,7 +355,7 @@ PWTEST(logger_debug_env_invalid)
fsync(STDERR_FILENO);
lseek(fd, SEEK_SET, 0);
while ((rc = read(fd, buf, sizeof(buf) - 1) > 0)) {
while ((rc = read(fd, buf, sizeof(buf) - 1)) > 0) {
if (strstr(buf, "Ignoring invalid format in log level")) {
error_message_found = true;
break;