But if you redirect it into a file, you will see PASS twice:
$ sudo /tmp/testlib_4jpn6z_/source/mantic/apparmor-4.0.0~alpha2/tests/regression/apparmor/unix_fd_server /tmp/sdtest.346048-11072-CHR92J/file /tmp/testlib_4jpn6z_/source/mantic/apparmor-4.0.0~alpha2/tests/regression/apparmor/attach_disconnected /tmp/sdtest.346048-11072-CHR92J/unix_fd_test /dev/loop6 /tmp/sdtest.346048-11072-CHR92J/new_root/ /tmp/sdtest.346048-11072-CHR92J/new_root/put_old/ > /tmp/a
$ cat /tmp/a
PASS
PASS
I am not sure why this is happening for the moment.
One interesting finding is that if you run the test directly, it will just print "PASS"
$ sudo /tmp/testlib_ 4jpn6z_ /source/ mantic/ apparmor- 4.0.0~alpha2/ tests/regressio n/apparmor/ unix_fd_ server /tmp/sdtest. 346048- 11072-CHR92J/ file /tmp/testlib_ 4jpn6z_ /source/ mantic/ apparmor- 4.0.0~alpha2/ tests/regressio n/apparmor/ attach_ disconnected /tmp/sdtest. 346048- 11072-CHR92J/ unix_fd_ test /dev/loop6 /tmp/sdtest. 346048- 11072-CHR92J/ new_root/ /tmp/sdtest. 346048- 11072-CHR92J/ new_root/ put_old/
PASS
But if you redirect it into a file, you will see PASS twice: 4jpn6z_ /source/ mantic/ apparmor- 4.0.0~alpha2/ tests/regressio n/apparmor/ unix_fd_ server /tmp/sdtest. 346048- 11072-CHR92J/ file /tmp/testlib_ 4jpn6z_ /source/ mantic/ apparmor- 4.0.0~alpha2/ tests/regressio n/apparmor/ attach_ disconnected /tmp/sdtest. 346048- 11072-CHR92J/ unix_fd_ test /dev/loop6 /tmp/sdtest. 346048- 11072-CHR92J/ new_root/ /tmp/sdtest. 346048- 11072-CHR92J/ new_root/ put_old/ > /tmp/a
$ sudo /tmp/testlib_
$ cat /tmp/a
PASS
PASS
I am not sure why this is happening for the moment.