Issue found on Mantic since 6.5.0-11.11
Test failed with: running attach_disconnected Fatal Error (unix_fd_server): Unable to run test sub-executable
By hacking the tests/regression/apparmor/prologue.inc: diff --git a/prologue.inc.orig b/prologue.inc index 9da05f2..fafc244 100755 --- a/prologue.inc.orig +++ b/prologue.inc @@ -297,7 +297,9 @@ checktestfg() { # global _pfmode _known _testdesc outfile teststatus testname local ret expectedsig killedsig + echo "==== $outfile ===" ret=`cat $outfile 2>/dev/null` + echo "$ret" teststatus=pass
case "$ret" in
Run tests/regression/apparmor/attach_disconnected.sh manually, you will find the test is failing because the test result got appended to the $outfile:
$ sudo bash attach_disconnected.sh ==== /tmp/sdtest.345049-12729-P0mta1/output.unix_fd_server === PASS ==== /tmp/sdtest.345049-12729-P0mta1/output.unix_fd_server === PASS PASS Fatal Error (unix_fd_server): Unable to run test sub-executable
And consequently falls in the case of testerror: *) testerror return ;;
Issue found on Mantic since 6.5.0-11.11
Test failed with:
running attach_disconnected
Fatal Error (unix_fd_server): Unable to run test sub-executable
By hacking the tests/regressio n/apparmor/ prologue. inc:
teststatus= pass
diff --git a/prologue.inc.orig b/prologue.inc
index 9da05f2..fafc244 100755
--- a/prologue.inc.orig
+++ b/prologue.inc
@@ -297,7 +297,9 @@ checktestfg()
{
# global _pfmode _known _testdesc outfile teststatus testname
local ret expectedsig killedsig
+ echo "==== $outfile ==="
ret=`cat $outfile 2>/dev/null`
+ echo "$ret"
case "$ret" in
Run tests/regressio n/apparmor/ attach_ disconnected. sh manually, you will find the test is failing because the test result got appended to the $outfile:
$ sudo bash attach_ disconnected. sh 345049- 12729-P0mta1/ output. unix_fd_ server === 345049- 12729-P0mta1/ output. unix_fd_ server ===
==== /tmp/sdtest.
PASS
==== /tmp/sdtest.
PASS
PASS
Fatal Error (unix_fd_server): Unable to run test sub-executable
And consequently falls in the case of testerror:
*) testerror
return
;;