llvm-project/llvm/lib/Support/Windows
Pawel Bylica a90e745109 [Support] Tweak path::system_temp_directory() on Windows.
Summary:
This patch changes the behavior of path::system_temp_directory() on Windows to be closer to GetTempPath Windows API call. Enforces path separator to be the native one, makes path absolute, etc. GetTempPath is not used directly because of limitations/implementation bugs on Windows 7.

Windows specific unit tests are added. Most of them runs in separated process with modified environment variables.

This change fixes FileSystemTest.CreateDir unittest that had been failing when run from Unix-like shell on Windows (Unix-like path separator (/) used in env variables).

Reviewers: chapuni, rafael, aaron.ballman

Subscribers: rafael, llvm-commits

Differential Revision: http://reviews.llvm.org/D14231

llvm-svn: 253345
2015-11-17 16:54:32 +00:00
..
COM.inc Windows/COM.inc: Fix emacs mode in the first line. 2015-08-05 06:11:08 +00:00
DynamicLibrary.inc [Support] Lazy load of dbghlp.dll on Windows 2015-07-02 14:34:57 +00:00
Host.inc Windows/Host.inc: Reformat the header to fit 80-col. 2014-09-24 04:45:14 +00:00
Memory.inc [Support] Fix a race initializing a static local in MSVC 2015-06-11 22:22:45 +00:00
Mutex.inc Rename Windows.h to WindowsSupport.h to avoid ambiguity 2014-02-12 21:26:20 +00:00
Path.inc [Support] Tweak path::system_temp_directory() on Windows. 2015-11-17 16:54:32 +00:00
Process.inc Report Windows error code in a fatal error after a system call. 2015-11-11 20:49:32 +00:00
Program.inc Windows: Fixed sys::findProgramByName to work with files containing dot in their name. 2015-10-08 16:03:19 +00:00
RWMutex.inc PR21202: Memory leak in Windows RWMutexImpl when using SRWLOCK 2014-10-21 00:34:39 +00:00
Signals.inc Fix a signed/unsigned mismatch warning; NFC. 2015-11-05 14:22:56 +00:00
ThreadLocal.inc ThreadLocal: Return a mutable pointer if templated with a non-const type 2014-12-15 01:04:45 +00:00
TimeValue.inc Fix lib\support\Windows/TimeValue.inc(48): warning C4189: 2015-04-15 07:45:52 +00:00
Watchdog.inc
WindowsSupport.h Require Windows API of version 6.1 (Windows 7). 2015-10-15 14:50:31 +00:00
explicit_symbols.inc [Cygming] Seek also chkstk_ms, or JIT fails with DLL builds. It is fixup for r227519. 2015-01-30 13:01:19 +00:00