diff options
author | Mike Gilbert <floppymaster@gmail.com> | 2017-07-04 23:22:47 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-07-04 23:22:47 -0400 |
commit | 496c486f12df1f85acbd7761ced807de828a5146 (patch) | |
tree | fc5f177f332b147f17572b76d959d5b14029a759 | |
parent | systemctl: print next timer trigger time with the status verb (#6242) (diff) | |
download | systemd-496c486f12df1f85acbd7761ced807de828a5146.tar.gz systemd-496c486f12df1f85acbd7761ced807de828a5146.tar.bz2 systemd-496c486f12df1f85acbd7761ced807de828a5146.zip |
test-fs-util: re-order test_readlink_and_make_absolute and test_get_files_in_directory (#6288)
test_readlink_and_make_absolute switches to a temp directory, and then
removes it.
test_get_files_in_directory calls opendir(".") from a directory that has
been removed from the filesystem.
This call sequence triggers a bug in Gentoo's sandbox library. This
library attempts to resolve the "." to an absolute path, and aborts when
it ultimately fails to do so.
Re-ordering the calls works around the issue until the sandbox library
can be fixed to more gracefully deal with this.
Bug: https://bugs.gentoo.org/590084
-rw-r--r-- | src/test/test-fs-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c index e774f567e..9e964a8bb 100644 --- a/src/test/test-fs-util.c +++ b/src/test/test-fs-util.c @@ -317,8 +317,8 @@ static void test_dot_or_dot_dot(void) { int main(int argc, char *argv[]) { test_unlink_noerrno(); - test_readlink_and_make_absolute(); test_get_files_in_directory(); + test_readlink_and_make_absolute(); test_var_tmp(); test_chase_symlinks(); test_dot_or_dot_dot(); |