Make GetTempPathA/W first check TMPDIR
authorStephen Toub <stoub@microsoft.com>
Fri, 17 Apr 2015 13:09:48 +0000 (09:09 -0400)
committerStephen Toub <stoub@microsoft.com>
Fri, 17 Apr 2015 14:01:54 +0000 (10:01 -0400)
commit43e28513e1dd446d8536c54a5b05cde56d38d191
tree913d95c3870192b774aa39396f795741d4771c96
parent055ae91a3383d75ef9bb42c6215db3985b82d9e5
Make GetTempPathA/W first check TMPDIR

Today GetTempPathA/W are hardcoded to return /tmp/.  This commit makes them first consult the TMPDIR environment variable, using its value if it exists.

This also overhauls the tests for GetTempPathA/W, which were out-of-date with regards to the existing implementation and which were excluded from PAL test runs.
src/pal/src/file/path.cpp
src/pal/tests/palsuite/file_io/GetTempPathW/test1/GetTempPathW.c
src/pal/tests/palsuite/file_io/gettemppatha/test1/gettemppatha.c
src/pal/tests/palsuite/paltestlist.txt