acct01 in ubuntu_ltp_syscalls reported as a failure with B-KVM

Bug #1824794 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Po-Hsu Lin
linux-kvm (Ubuntu)
Invalid
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

Revision history for this message
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)
tags: added: sru-20190603
Po-Hsu Lin (cypressyew)
tags: added: ubuntu-ltp-syscalls
Po-Hsu Lin (cypressyew)
tags: added: linux-kvm
Revision history for this message
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.

Revision history for this message
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)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Issue fixed upstream, it will be skipped without any error now:

<<<test_start>>>
tag=acct01 stime=1615542850
cmdline="acct01"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
tst_test.c:1291: TINFO: Timeout per run is 0h 05m 00s
acct01.c:75: TCONF: acct() system call isn't configured in kernel

Summary:
passed 0
failed 0
broken 0
skipped 1
warnings 0

Changed in ubuntu-kernel-tests:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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