acct01 in ubuntu_ltp_syscalls reported as a failure with B-KVM

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

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.

<<<test_start>>>
tag=acct01 stime=1555326506
cmdline="acct01"
contacts=""
analysis=exit
<<<test_output>>>
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

Summary:
passed 0
failed 0
skipped 0
warnings 2
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=36 corefile=no
cutime=0 cstime=0
<<<test_end>>>
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:
        SAFE_UNLINK(TEST_TMPFILE);
        SAFE_UNLINK(TEST_ELOOP);

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.