#47 0.62: test suite is failing
Closed by thalman. Opened by kloczek.

+ /usr/bin/make -O -j48 V=1 VERBOSE=1 check
Making check in po
make[1]: Nothing to be done for 'check'.
Making check in docs
Making check in reference
/usr/bin/make  check-TESTS
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62/docs/reference'
============================================================================
Testsuite summary for libuser 0.62
============================================================================
# TOTAL: 0
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62/docs/reference'
make[2]: Nothing to be done for 'check-am'.
/usr/bin/make  tests/alloc_port tests/wait_for_slapd_exit tests/wait_for_slapd_start
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
gcc -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -c -o tests/alloc_port.o tests/alloc_port.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
gcc -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -c -o tests/wait_for_slapd_exit.o tests/wait_for_slapd_exit.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
gcc -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -c -o tests/wait_for_slapd_start.o tests/wait_for_slapd_start.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -no-install -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/alloc_port tests/alloc_port.o
libtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/alloc_port tests/alloc_port.o
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -no-install -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/wait_for_slapd_exit tests/wait_for_slapd_exit.o
libtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/wait_for_slapd_exit tests/wait_for_slapd_exit.o
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -no-install -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/wait_for_slapd_start tests/wait_for_slapd_start.o
libtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/wait_for_slapd_start tests/wait_for_slapd_start.o
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
/usr/bin/make  check-TESTS
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
PASS: tests/config_test.sh
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
FAIL: tests/fs_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
PASS: tests/pwhash_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
PASS: tests/utils_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
PASS: tests/files_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
FAIL: tests/ldap_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
FAIL: tests/default_pw_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
====================================
   libuser 0.62: ./test-suite.log
====================================
# TOTAL: 7
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: tests/fs_test
===================
2,3c2,3
< -rw-rw-r-- 1 1000 1000 kept
< -rw------- 1 1000 1000 secret
---
> -rw-rw-r-- 1    0    0 kept
> ---------- 1    0    0 secret
FAIL tests/fs_test (exit status: 1)
FAIL: tests/default_pw_test
===========================
>>>modules: files
....
----------------------------------------------------------------------
Ran 4 tests in 0.159s
OK
Checking passwd user_default ...
Checking group group_default ...
Checking passwd user_setpass ...
Checking group group_setpass ...
>>>modules: ldap
Waiting for slapd: 29...  Timeout waiting for slapd
cat: /home/tkloczko/rpmbuild/BUILD/libuser-0.62/test_default_pw/slapd.pid: No such file or directory
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Traceback (most recent call last):
  File "./tests/default_pw_test.py", line 19, in <module>
    admin = libuser.admin(prompt = prompt_callback)
SystemError: could not negotiate TLS with LDAP server
Checking uid=user_default ...
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Modules ldap: Unexpected uid=user_default password value
Checking cn=group_default ...
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Checking uid=user_setpass ...
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Modules ldap: Missing {CRYPT} marker in uid=user_setpass
Modules ldap: Password not set correctly for uid=user_setpass
Checking cn=group_setpass ...
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Modules ldap: Missing {CRYPT} marker in cn=group_setpass
Modules ldap: Password not set correctly for cn=group_setpass
./tests/default_pw_test: line 203: kill: `': not a pid or valid job spec
Waiting for slapd exit: 0.0...
>>>modules: files ldap
Waiting for slapd: 29...  Timeout waiting for slapd
cat: /home/tkloczko/rpmbuild/BUILD/libuser-0.62/test_default_pw/slapd.pid: No such file or directory
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Initialization error, as expected
./tests/default_pw_test: line 203: kill: `': not a pid or valid job spec
Waiting for slapd exit: 0.0...
>>>modules: files shadow
....
----------------------------------------------------------------------
Ran 4 tests in 0.202s
OK
Checking passwd user_default ...
Checking passwd user_setpass ...
Checking group group_default ...
Checking group group_setpass ...
Checking shadow user_default ...
Checking gshadow group_default ...
Checking shadow user_setpass ...
Checking gshadow group_setpass ...
>>>modules: ldap files
Waiting for slapd: 29...  Timeout waiting for slapd
cat: /home/tkloczko/rpmbuild/BUILD/libuser-0.62/test_default_pw/slapd.pid: No such file or directory
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Initialization error, as expected
./tests/default_pw_test: line 203: kill: `': not a pid or valid job spec
Waiting for slapd exit: 0.0...
>>>modules: shadow files
....
----------------------------------------------------------------------
Ran 4 tests in 0.179s
OK
Checking passwd user_default ...
Checking passwd user_setpass ...
Checking group group_default ...
Checking group group_setpass ...
Checking shadow user_default ...
Checking gshadow group_default ...
Checking shadow user_setpass ...
Checking gshadow group_setpass ...
>>>modules: files ldap shadow
Waiting for slapd: 29...  Timeout waiting for slapd
cat: /home/tkloczko/rpmbuild/BUILD/libuser-0.62/test_default_pw/slapd.pid: No such file or directory
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Initialization error, as expected
./tests/default_pw_test: line 203: kill: `': not a pid or valid job spec
Waiting for slapd exit: 0.0...
>>>modules: files shadow ldap
Waiting for slapd: 29...  Timeout waiting for slapd
cat: /home/tkloczko/rpmbuild/BUILD/libuser-0.62/test_default_pw/slapd.pid: No such file or directory
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Initialization error, as expected
./tests/default_pw_test: line 203: kill: `': not a pid or valid job spec
Waiting for slapd exit: 0.0...
>>>modules: ldap files shadow
Waiting for slapd: 29...  Timeout waiting for slapd
cat: /home/tkloczko/rpmbuild/BUILD/libuser-0.62/test_default_pw/slapd.pid: No such file or directory
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Initialization error, as expected
./tests/default_pw_test: line 203: kill: `': not a pid or valid job spec
Waiting for slapd exit: 0.0...
>>>modules: ldap shadow files
Waiting for slapd: 29...  Timeout waiting for slapd
cat: /home/tkloczko/rpmbuild/BUILD/libuser-0.62/test_default_pw/slapd.pid: No such file or directory
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Initialization error, as expected
./tests/default_pw_test: line 203: kill: `': not a pid or valid job spec
Waiting for slapd exit: 0.0...
>>>modules: shadow files ldap
Waiting for slapd: 29...  Timeout waiting for slapd
cat: /home/tkloczko/rpmbuild/BUILD/libuser-0.62/test_default_pw/slapd.pid: No such file or directory
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Initialization error, as expected
./tests/default_pw_test: line 203: kill: `': not a pid or valid job spec
Waiting for slapd exit: 0.0...
>>>modules: shadow ldap files
Waiting for slapd: 29...  Timeout waiting for slapd
cat: /home/tkloczko/rpmbuild/BUILD/libuser-0.62/test_default_pw/slapd.pid: No such file or directory
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Initialization error, as expected
./tests/default_pw_test: line 203: kill: `': not a pid or valid job spec
Waiting for slapd exit: 0.0...
FAIL tests/default_pw_test (exit status: 1)
FAIL: tests/ldap_test
=====================
Waiting for slapd: 29...  Timeout waiting for slapd
cat: /home/tkloczko/rpmbuild/BUILD/libuser-0.62/test_ldap/slapd.pid: No such file or directory
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Traceback (most recent call last):
  File "./tests/ldap_test.py", line 17, in <module>
    admin = libuser.admin(prompt = prompt_callback)
SystemError: could not negotiate TLS with LDAP server
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Waiting for slapd exit: 0.0...
FAIL tests/ldap_test (exit status: 1)
============================================================================
Testsuite summary for libuser 0.62
============================================================================
# TOTAL: 7
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to mitr@redhat.com
============================================================================
make[3]: *** [Makefile:2299: test-suite.log] Error 1
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: *** [Makefile:2407: check-TESTS] Error 2
make[1]: *** [Makefile:2686: check-am] Error 2
make: *** [Makefile:2184: check-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.RFIXxI (%check)

It is a bit better after apply all git patches

+ /usr/bin/make -O -j48 V=1 VERBOSE=1 check
Making check in po
make[1]: Nothing to be done for 'check'.
Making check in docs
Making check in reference
/usr/bin/make  check-TESTS
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62/docs/reference'
============================================================================
Testsuite summary for libuser 0.62
============================================================================
# TOTAL: 0
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62/docs/reference'
make[2]: Nothing to be done for 'check-am'.
/usr/bin/make  tests/alloc_port tests/wait_for_slapd_exit tests/wait_for_slapd_start
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
gcc -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -c -o tests/alloc_port.o tests/alloc_port.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
gcc -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -c -o tests/wait_for_slapd_exit.o tests/wait_for_slapd_exit.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
gcc -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -c -o tests/wait_for_slapd_start.o tests/wait_for_slapd_start.c
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -no-install -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/alloc_port tests/alloc_port.o  -laudit
libtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/alloc_port tests/alloc_port.o  -laudit
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -no-install -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/wait_for_slapd_start tests/wait_for_slapd_start.o  -laudit
libtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/wait_for_slapd_start tests/wait_for_slapd_start.o  -laudit
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -no-install -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/wait_for_slapd_exit tests/wait_for_slapd_exit.o  -laudit
libtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -Wall -Wcast-align -Wmissing-noreturn -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wundef -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -o tests/wait_for_slapd_exit tests/wait_for_slapd_exit.o  -laudit
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
/usr/bin/make  check-TESTS
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
PASS: tests/config_test.sh
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
FAIL: tests/fs_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
PASS: tests/pwhash_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
PASS: tests/default_pw_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
PASS: tests/utils_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
PASS: tests/ldap_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
PASS: tests/files_test
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libuser-0.62'
====================================
   libuser 0.62: ./test-suite.log
====================================
# TOTAL: 7
# PASS:  6
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: tests/fs_test
===================
2,3c2,3
< -rw-rw-r-- 1 1000 1000 kept
< -rw------- 1 1000 1000 secret
---
> -rw-rw-r-- 1    0    0 kept
> ---------- 1    0    0 secret
FAIL tests/fs_test (exit status: 1)
============================================================================
Testsuite summary for libuser 0.62
============================================================================
# TOTAL: 7
# PASS:  6
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to https://pagure.io/libuser
============================================================================

The fs_test is kind of sensitive. I fixed several issues but some tests still works only under root. Those are now skipped when you are using fakeroot.

Even with fakeroot coming from pseudo (Fedora deprecated the old fakeroot in favor of pseudo library) is not good enough and tests are failing on some architectures.

If you remove fakeroot binary from you build environment, fs_test will be correctly skipped and make check will pass.

Metadata Update from @thalman:
- Issue status updated to: Closed (was: Open)

OK so .. is this just bug in test suite or fakeroot? 🤔

I would not call that bug in fakeroot, maybe incompleteness or need for RFE.

Anyway the fs_test now skips those few items that does not work in fakeroot properly when it uses this tool and it passes in Fedora rawhide build for example.

You still can decide not to use fakeroot and run tests as root and it should work (in chroot or in some build container maybe?).

OK .. someone speaked about that with fakeroot maintainer?
Sometimes it is hard to fix the bug if you are not aware that it is the bug😋

Metadata