test_files.h: Support LIBNIH_TEMPDIR override for TEST_FILENAME

TEST_FILENAME generates semi-predictable, semi-unique file paths in
/tmp. That's all well and good, but the "semi" unique part can be a
problem. Additionally, users may or may not clean these up properly when
they're done, which can cause problems for reproducibility.

Allow users to place temporary files somewhere else, to make cleanup
easier.

BUG=none
TEST=none

Change-Id: Ia0fec75ec2bfd2302878abd03a4008c550d7a7f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libnih/+/5623069
Reviewed-by: Allen Webb <allenwebb@google.com>
Commit-Queue: Brian Norris <briannorris@chromium.org>
Tested-by: Brian Norris <briannorris@chromium.org>
1 file changed