diff mbox series

[pseudo,03/20] test/test-statx.sh: It should be a failure if pseudo prints an error

Message ID 1768520616-7289-4-git-send-email-mark.hatle@kernel.crashing.org
State New
Headers show
Series Consolidated pseudo patches | expand

Commit Message

Mark Hatle Jan. 15, 2026, 11:43 p.m. UTC
Capture the output and compare to a know error message, error if
the null message is present.

This is currently a known failure, reported in Yocto Project bug 16075.

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
---
 test/test-statx.sh | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/test/test-statx.sh b/test/test-statx.sh
index 77d0302..045f6ff 100755
--- a/test/test-statx.sh
+++ b/test/test-statx.sh
@@ -3,4 +3,16 @@ 
 # SPDX-License-Identifier: LGPL-2.1-only
 #
 
-exec ./test/test-statx
+tmplog="$(mktemp pseudo.log.XXXXXXXX)"
+./test/test-statx >${tmplog} 2>&1
+rc=$?
+
+if grep -q "couldn't allocate absolute path for 'null'." ${tmplog} ; then
+    echo "Unexpected message: \"couldn't allocate absolute path for 'null'.\" found."
+    rc=1
+fi
+
+cat ${tmplog}
+
+rm $tmplog
+exit $rc