Comment 1 for bug 2051932

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

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/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/
PASS

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.