Commit Graph

10 Commits

Author SHA1 Message Date
Reid Kleckner fec792a0af Remove shell requirements from tests that use 'cd'
Modules and Tooling tests in particular tend to want to change the cwd,
so we were missing test coverage in this area on Windows. It should now
be easier to write such portable tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@231029 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-02 22:42:58 +00:00
Chad Rosier b1c8122b43 [driver] Implement the -fdebug-compilation-dir in a way that is compatible with
gcc.  No test case included as I'm having problems finding a test case where
the inode/dev don't match.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180628 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-26 20:49:50 +00:00
NAKAMURA Takumi ba81d966fb test/Driver/debug.c: Mark this as "REQUIRES: shell".
Former RUN line does not make sense on Win32 hosts.
Win32 hosts would not be expected to set appropriate $PWD.

Latter RUN line might be made valid if PathV2::is_absolute("/foo") would be true. Unfortunately, "/foo" should not be treated as absolute path on Win32.

FYI, on mingw32 with MSYS bash (it has 'shell' feature);
Former) $PWD is set as "X:/hogehoge/test/Driver"
Latter) PWD=/foo sets "X:/root/to/msys/foo" to $PWD.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142721 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-22 11:28:32 +00:00
Douglas Gregor 4a8eff09dd XFAIL test on Windows
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142703 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-21 23:57:02 +00:00
Douglas Gregor 60419fa4e3 More speculative test tweaking
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142701 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-21 23:37:41 +00:00
Douglas Gregor 33b3d2a5b6 Switch tests from grep to FileCheck
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142699 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-21 23:20:41 +00:00
Nick Lewycky 9c0778bbda Doug reports that this test is still failing. Try applying Benjamin Kramer's
suggestion!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142692 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-21 22:21:24 +00:00
Nick Lewycky cb125dd495 Try to be exceedingly clever and make this test work properly whether it's run
under bash or under cmd.exe.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142637 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-21 04:04:49 +00:00
Nick Lewycky 258f9a2c33 Massage this test a little so it works when run inside the Google environment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142635 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-21 03:07:40 +00:00
Nick Lewycky 7c4fd9121f Take DW_AT_comp_dir from $PWD when it's present and starts with a '/'. This is
closer to what GCC does, except that GCC also checks that the inodes for $PWD
and '.' match.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142633 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-21 02:32:14 +00:00