summaryrefslogtreecommitdiff
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
commit2d12e6088e92a39e10ffd1faad0bdc7a88401750 (patch)
treed60e402462344f8556e0d479f198c0e40a0d4149
parentdb3147743368b14b3ed218cb3f6026cb7963d77c (diff)
test: log: log_process: Improve debugging on process exit failures
When the process fails to run and exit normally, the test prints an error message that provides little information: process did not exit normally Expand the error message to print the exit status to make debugging easier. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--test/log/log_process.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/log/log_process.cpp b/test/log/log_process.cpp
index f7635b70..fb6635cc 100644
--- a/test/log/log_process.cpp
+++ b/test/log/log_process.cpp
@@ -86,7 +86,8 @@ protected:
dispatcher->processEvents();
if (exitStatus_ != Process::NormalExit) {
- cerr << "process did not exit normally" << endl;
+ cerr << "process did not exit normally: " << exitStatus_
+ << endl;
return TestFail;
}