FAIL: test_regression_testsuite (__main__.ApparmorTestsuites): 12 | #include <sys/sysctl.h>

Bug #1897288 reported by Paolo Pisati
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
New
Undecided
Unassigned

Bug Description

When running our ubuntu_qrt_appamor test (that is just a wrapper around qa-regression-testing/scripts/test-apparmor.py):

  test_utils_testsuite3 (__main__.ApparmorTestsuites)
  Run utils (make check with python3) ... ok
  test_zz_cleanup_source_tree (__main__.ApparmorTestsuites)
  Cleanup downloaded source ... ok

  ======================================================================
  FAIL: test_regression_testsuite (__main__.ApparmorTestsuites)
  Run kernel regression tests
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test-apparmor.py", line 1757, in test_regression_testsuite
      self.assertEqual(expected, rc, result + report)
  AssertionError: 0 != 2 : Got exit code 2, expected 0
...
  cc -g -O0 -Wall -Wsign-compare -Wmissing-field-initializers -Wformat -Wformat-security -Wunused-parameter -Wimplicit-fallthrough syscall_sysctl.c -lapparmor -o syscall_sysctl
  syscall_sysctl.c:12:10: fatal error: sys/sysctl.h: No such file or directory
     12 | #include <sys/sysctl.h>
        | ^~~~~~~~~~~~~~
  compilation terminated.
  make: *** [<builtin>: syscall_sysctl] Error 1

See the attached complete log.

Revision history for this message
Paolo Pisati (p-pisati) wrote :
Revision history for this message
Seth Arnold (seth-arnold) wrote :
Revision history for this message
John Johansen (jjohansen) wrote :

Fixed as upstream issue https://gitlab.com/apparmor/apparmor/-/issues/119

commit
2e5a266e regression tests: Don't build syscall_sysctl if missing kernel headers

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.