Project

General

Profile

Actions

action #99021

closed

action #93441: [sle][security][sle15sp4][CC] CC hand over

[sle][security][sle15sp4][CC][s390x] test fails in setup_net_test_env - make failed

Added by rfan1 over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2021-09-22
Due date:
% Done:

100%

Estimated time:
20.00 h
Difficulty:

Description

Observation

openQA test in scenario sle-15-SP4-Online-s390x-cc_net_case_server@s390x-kvm-sle12 fails in
setup_net_test_env

Test suite description

Reproducible

Fails since (at least) Build 36.1

Expected result

Last good: (unknown) (or more recent)

Further details

Always latest result in this scenario: latest

Actions #1

Updated by rfan1 over 3 years ago

  • Subject changed from [sle][security][sle15sp4][CC][s390x] test fails in setup_net_test_env make failed to [sle][security][sle15sp4][CC][s390x] test fails in setup_net_test_env - make failed
Actions #2

Updated by rfan1 over 3 years ago

  • Related to action #93441: [sle][security][sle15sp4][CC] CC hand over added
Actions #3

Updated by rfan1 over 3 years ago

  • Parent task set to #93441
Actions #4

Updated by rfan1 over 3 years ago

susetest:/tmp/audit-test-sle15-master/audit-test/utils/bin # make -o do_semop.c do_semop
cc -g -O2 -Wall -Werror -D_GNU_SOURCE -fno-strict-aliasing -DSUSE -DS390X -I../include do_semop.c -o do_semop
In file included from do_semop.c:18:0:
ipc_common.c: In function ‘do_semop’:
ipc_common.c:272:20: error: ‘NR_semop’ undeclared (first use in this function); did you mean ‘NR_shmdt’?
return syscall(__NR_semop, semid, &sops, 1);
~~~~~~~~~
__NR_shmdt
ipc_common.c:272:20: note: each undeclared identifier is reported only once for each function it appears in
ipc_common.c:274:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
make: *** [: do_semop] Error 1

I did some investigation, and found that it might be a bug [may be by design on s390x, need confirm with developer later]

susetest:~ # cat /usr/include/asm/unistd_64.h |grep semop
susetest:~ # cat /usr/include/asm-generic/unistd.h|grep semop
#define NR_semop 193
__SYSCALL(
NR_semop, sys_semop)

We can see that the syscall was not included in unistd_64.h file.

I did a minor fix on this c code:

susetest:/tmp/audit-test-sle15-master/audit-test/utils/bin # cat ipc_common.c |grep -A1 NR_semop, make can passed, but not sure if we can pass the tests

 /* return syscall(__NR_semop, semid, &sops, 1); */
 return semop(semid, &sops, 1);
Actions #6

Updated by rfan1 over 3 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 20

code change done

Actions #7

Updated by rfan1 about 3 years ago

  • Copied to action #101885: [sle][security][sle15sp4][CC][manual] Implement audit-remote tests added
Actions #8

Updated by rfan1 about 3 years ago

  • Copied to deleted (action #101885: [sle][security][sle15sp4][CC][manual] Implement audit-remote tests)
Actions #9

Updated by rfan1 about 3 years ago

  • Status changed from In Progress to Resolved
  • Estimated time changed from 40.00 h to 20.00 h
Actions #10

Updated by rfan1 about 3 years ago

  • % Done changed from 20 to 100
Actions

Also available in: Atom PDF