diff --git a/test/test-logger.c b/test/test-logger.c index 178263ada..2c5a5bd9a 100644 --- a/test/test-logger.c +++ b/test/test-logger.c @@ -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;