Subject: | t/06-notify.t failure due to missing /run/user/0/systemd |
I'm running the test suite on a CentOS 7 server as root
and this is failing due to missing /run/user/0/systemd directory
note that creating the missing directory does not solve the issue as this is not used by systemd
IMO that test should be skipped
[root@rpmbuild-64-centos-7 Systemd-Daemon-0.07]# make test
PERL_DL_NONLAZY=1 /usr/local/cpanel/3rdparty/perl/514/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t ...... ok
t/01-stub-export.t .. ok
t/02-stub-func.t .... ok
t/03-xs-export.t .... ok
t/04-xs-func.t ...... ok
t/05-export.t ....... ok
t/06-notify.t ....... # sd_booted: 1
# $ /usr/bin/systemctl --user --version
# . systemd 219
# . +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN
# (signal: 0, status: 0)
# XDG_RUNTIME_DIR=/run/user/0
Directory '/run/user/0/systemd' does not exist
t/06-notify.t ....... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Test Summary Report
-------------------
t/06-notify.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=7, Tests=55, 1 wallclock secs ( 0.08 usr 0.01 sys + 0.83 cusr 0.11 csys = 1.03 CPU)
Result: FAIL
Failed 1/7 test programs. 0/55 subtests failed.
make: *** [test_dynamic] Error 2