summaryrefslogtreecommitdiff
path: root/test/log
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-12-06 19:57:06 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-12-07 18:59:42 +0200
commitdb3147743368b14b3ed218cb3f6026cb7963d77c (patch)
treef5caa1e012da006c7027bb41e470df28d1ef32e2 /test/log
parent030fe617ef2a7064f45d5af515cd49b0a085c711 (diff)
test: log: log_process: Fix uninitialized variable on process exit failure
If the process fails to exit before the timeout, the LogProcessTest::exitStatus_ variable gets used uninitialized. Fix it by initializating to Process::NotExited. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/log')
-rw-r--r--test/log/log_process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/log/log_process.cpp b/test/log/log_process.cpp
index 17af7d74..f7635b70 100644
--- a/test/log/log_process.cpp
+++ b/test/log/log_process.cpp
@@ -139,7 +139,7 @@ private:
ProcessManager processManager_;
Process proc_;
- Process::ExitStatus exitStatus_;
+ Process::ExitStatus exitStatus_ = Process::NotExited;
string logPath_;
int exitCode_;
int num_;