[all-commits] [llvm/llvm-project] 8d41f1: Fix GSYM tests to run the yaml files and fix test ...
Greg Clayton via All-commits
all-commits at lists.llvm.org
Mon Mar 2 15:40:20 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8d41f1a02369537cae1a7d00c0fa717fc3aca575
https://github.com/llvm/llvm-project/commit/8d41f1a02369537cae1a7d00c0fa717fc3aca575
Author: Greg Clayton <gclayton at fb.com>
Date: 2020-03-02 (Mon, 02 Mar 2020)
Changed paths:
M llvm/lib/DebugInfo/GSYM/GsymCreator.cpp
A llvm/test/tools/llvm-gsymutil/ARM_AArch64/fat-macho-dwarf.yaml
A llvm/test/tools/llvm-gsymutil/ARM_AArch64/lit.local.cfg
A llvm/test/tools/llvm-gsymutil/X86/elf-dwarf.yaml
A llvm/test/tools/llvm-gsymutil/X86/lit.local.cfg
A llvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml
R llvm/test/tools/llvm-gsymutil/elf-dwarf.yaml
R llvm/test/tools/llvm-gsymutil/fat-macho-dwarf.yaml
R llvm/test/tools/llvm-gsymutil/mach-dwarf.yaml
M llvm/tools/llvm-gsym/llvm-gsymutil.cpp
Log Message:
-----------
Fix GSYM tests to run the yaml files and fix test failures on some machines.
YAML files were not being run during lit testing as there was no lit.local.cfg file. Once this was fixed, some buildbots would fail due to a StringRef that pointed to a std::string inside of a temporary llvm::Triple object. These issues are fixed here by making a local triple object that stays around long enough so the StringRef points to valid data. Also fixed an issue where strings for files in the file table could be added in opposite order due to parameters to function calls not having a strong ordering, which caused tests to fail. Added new arch specfic directories so when targets are not enabled, we continue to function just fine.
Differential Revision: https://reviews.llvm.org/D75390
More information about the All-commits
mailing list