summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/env.c
Commit message (Collapse)AuthorAgeFilesLines
* Enable passing clang tests on Windows/MSYS.Yaron Keren2015-07-261-1/+1
| | | | llvm-svn: 243236
* Fix clash of gcc toolchains in driver regression tests.Samuel Antao2015-01-051-1/+2
| | | | | | For some regression tests the path to the right toolchain is specified using the -sysroot switch. However, if clang was configured with a custom gcc toolchain (either by using GCC_INSTALL_PREFIX in cmake or the equivalent configure command), the path to the custom gcc toolchain path takes precedence to the one specified by sysroot. This causes several regression tests to fail as they will be using an unexpected path. This patch fixes this issue by adding --gcc-toolchain='' to all tests that rely on that. The empty string causes the driver to pick the path from sysroot instead. llvm-svn: 225182
* Preserve LD_LIBRARY_PATH when using the 'env' commandHal Finkel2014-12-031-2/+4
| | | | | | | | | In many Linux environments (and similar), just-built applications won't run correctly without making use of the current LD_LIBRARY_PATH environmental variable in order to find dynamic libraries. Propagate it through the 'env' command (hopefully this works on all platforms). llvm-svn: 223219
* Rely on fewer features of the 'env' command. Darwin only supports '-i'.Chandler Carruth2014-12-021-2/+2
| | | | | | | I'm explicitly setting LC_ALL=C somewhat for documentation, but hopefully this also removes some host variation from the test results. llvm-svn: 223102
* Add a test that ensures the Clang driver behaves itself when the PATHChandler Carruth2014-12-021-0/+25
environment variable is changed to strange things out from under it. Prior to r223099 in LLVM, these test cases would crash in various ways (assert fails, stack exhaustion, etc.). llvm-svn: 223100
OpenPOWER on IntegriCloud