acct01 in ubuntu_ltp_syscalls reported as a failure with B-KVM

Bug #1824794 reported by Po-Hsu Lin on 2019-04-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Po-Hsu Lin
linux-kvm (Ubuntu)

Bug Description

This test was skipped in the ltp syscalls test, due to unmatched configs.

However the ltp test suite will treat it as a failure, it's better to figure out how to skip this.

tag=acct01 stime=1555326506
tst_test.c:1096: INFO: Timeout per run is 0h 05m 00s
incrementing stop
acct01.c:70: CONF: acct() system call isn't configured in kernel
safe_macros.c:360: WARN: acct01.c:96: unlink(./tmpfile) failed: ENOENT
safe_macros.c:360: WARN: acct01.c:97: unlink(test_file_eloop1) failed: ENOENT

passed 0
failed 0
skipped 0
warnings 2
duration=0 termination_type=exited termination_id=36 corefile=no
cutime=0 cstime=0
INFO: ltp-pan reported some tests FAIL

Po-Hsu Lin (cypressyew) wrote :

This test will need CONFIG_BSD_PROCESS_ACCT=y in the kernel config, which was not enabled in the KVM kernels.

tags: added: cosmic
tags: added: amd64
Po-Hsu Lin (cypressyew) on 2019-06-24
tags: added: sru-20190603
Po-Hsu Lin (cypressyew) on 2019-06-24
tags: added: ubuntu-ltp-syscalls
Po-Hsu Lin (cypressyew) on 2019-06-24
tags: added: linux-kvm
Po-Hsu Lin (cypressyew) wrote :

This issue was caused by the cleanup function, it will try to run SAFE_UNLINK() in the end of the test:

As these should be the cleanup for the SAFE_SYMLINK() in the test:
        SAFE_SYMLINK(TEST_ELOOP, "test_file_eloop2");
        SAFE_SYMLINK("test_file_eloop2", TEST_ELOOP);

But the test was skipped due to the config issue. And the SAFE_UNLINK() causes the ENOENT warning.

Po-Hsu Lin (cypressyew) wrote :
Changed in linux-kvm (Ubuntu):
status: New → Invalid
Changed in ubuntu-kernel-tests:
status: New → Triaged
assignee: nobody → Po-Hsu Lin (cypressyew)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.