chiark / gitweb /
test-fs-util: re-order test_readlink_and_make_absolute and test_get_files_in_director...
authorMike Gilbert <floppymaster@gmail.com>
Wed, 5 Jul 2017 03:22:47 +0000 (23:22 -0400)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:53 +0000 (09:46 +0200)
commit9c9c41e866f0e209cb0cf0f88d6a43de8036bc0d
treed1ce965db6e60b4be1ac3e58f1c78b7e169de7c6
parent9530ceaa6f29e793ed071b78914a5fada5a1e462
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
src/test/test-fs-util.c