llvm-capstone/libunwind/test
Michal Gorny e04b002cf8 [libunwind] [test] Fix inferring source paths
Fix two issues that caused libcxx source path not to be inferred
correctly when not specified explicitly:

1. get_lit_conf() uses default value only if the lit variable is set
   to None.  Due to the mehod of substituting lit.site.cfg, they were
   "" rather than None when unset, effectively causing the default never
   to apply.  Instead, use 'or' construct to use the default whenever
   get_lit_conf() returns a false value.

2. If os.path.join() is given a component starting with '/', it takes
   it to be an absolute path and ignores everything preceding it.
   Remove the slash to correctly append subdirectory.

With these two fixes, libunwind tests start working on NetBSD buildbot
again.

Differential Revision: https://reviews.llvm.org/D62005

llvm-svn: 361931
2019-05-29 07:20:30 +00:00
..
libunwind [libunwind] [test] Fix inferring source paths 2019-05-29 07:20:30 +00:00
alignment.pass.cpp
CMakeLists.txt [CMake] Update lit test configuration 2019-02-05 04:44:03 +00:00
libunwind_01.pass.cpp
libunwind_02.pass.cpp
lit.cfg [PPC64][libunwind] Fix r2 not properly restored 2019-05-16 06:49:13 +00:00
lit.site.cfg.in [CMake] Support compiler-rt builtins library in tests 2019-02-05 19:50:47 +00:00
unw_getcontext.pass.cpp