aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/CompilationDatabaseTest.cpp
diff options
context:
space:
mode:
authorRainer Orth <ro@gcc.gnu.org>2019-07-12 08:27:50 +0000
committerRainer Orth <ro@gcc.gnu.org>2019-07-12 08:27:50 +0000
commit56f2f1cdb36a152a0f5f03aa6b379e2dd9d9cedc (patch)
treee72c940658771a44121d3c880120cabff64d2601 /clang/unittests/Tooling/CompilationDatabaseTest.cpp
parent7ba838d29c6a0f78a4e91a52d7f297bfcd044844 (diff)
downloadllvm-56f2f1cdb36a152a0f5f03aa6b379e2dd9d9cedc.zip
llvm-56f2f1cdb36a152a0f5f03aa6b379e2dd9d9cedc.tar.gz
llvm-56f2f1cdb36a152a0f5f03aa6b379e2dd9d9cedc.tar.bz2
[Sanitizers] Fix SanitizerCommon-Unit :: ./Sanitizer-*-Test/MemoryMappingLayout.DumpListOfModules on Solaris
The MemoryMappingLayout.DumpListOfModules currently FAILs on Solaris: [ RUN ] MemoryMappingLayout.DumpListOfModules /vol/llvm/src/compiler-rt/local/lib/sanitizer_common/tests/sanitizer_procmaps_test.cc:52: Failure Value of: found Actual: false Expected: true [ FAILED ] MemoryMappingLayout.DumpListOfModules (22 ms) The problem is that the test expects the executable name from modules[i].full_name(), however the pr_mapname field of struct prmap is just the entry in /proc/<pid>/object, which is "a.out" instead of "Sanitizer-i386-Test". Fortunately, the real name can be determined by looking in proc/<pid>/path where "a.out" is a symlink to the real path. Tested on x86_64-pc-solaris2.11. Differential Revision: https://reviews.llvm.org/D64559 llvm-svn: 365879
Diffstat (limited to 'clang/unittests/Tooling/CompilationDatabaseTest.cpp')
0 files changed, 0 insertions, 0 deletions