]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: skip exec tests when inaccessible dir is unavailable
authorDongsu Park <dongsu@endocode.com>
Tue, 25 Oct 2016 12:51:01 +0000 (14:51 +0200)
committerEvgeny Vereshchagin <evvers@ya.ru>
Tue, 25 Oct 2016 13:27:45 +0000 (13:27 +0000)
commit6086d2daf370426259299e6ff9316ae51238969a
treeb77e0d5af777f5d19a8d551ba1a2b8b714517262
parentf70ebf1ce3b35d56917605a1696d7eaba4990f11
test: skip exec tests when inaccessible dir is unavailable

In case of running test-execute on systems with systemd < v232, several
tests like privatedevices or protectkernelmodules fail because
/run/systemd/inaccessible/ doesn't exist. In these cases, we should skip
tests to avoid unnecessary errors.

See also https://github.com/systemd/systemd/pull/4243#issuecomment-253665566
src/test/test-execute.c