]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: Ensure temporary directory used by tests exists
authorJon Turney <jon.turney@dronecode.org.uk>
Thu, 29 Oct 2020 14:43:32 +0000 (14:43 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Sun, 8 Nov 2020 14:42:02 +0000 (14:42 +0000)
commitf3ed5f2fe029d74372aca68b18936e164ff47cf7
tree47c836fbf93405df8fe06c439a4dcfcce027cf46
parent9cdb799806e7531a1286d5928e501ae84e74be5f
Cygwin: Ensure temporary directory used by tests exists

By default, libltp tests will create temporary files in a subdirectory
of /tmp, which will (nowadays) be located relative to the test DLL (by
assuming that it is in /bin).  This will evaluate to the directory
$target_builddir/winsup/tmp, which doesn't exist.

The location used for these temporary files can be explicitly controlled
by setting the TDIRECTORY env var.  Arrange to set that env var to the
/cygdrive path of a tmp subdirectory of the build directory.

Unfortunately, libltp doesn't clean the temporary directory if
TDIRECTORY is set, and some tests assume they are started in a clean
directory, so we need to do that in tcl.
winsup/testsuite/Makefile.in
winsup/testsuite/cygrun.c
winsup/testsuite/winsup.api/winsup.exp
This page took 0.025231 seconds and 5 git commands to generate.