[all-commits] [llvm/llvm-project] 4050b0: Fix GSYM tests to run the yaml files and fix test ...

Greg Clayton via All-commits all-commits at lists.llvm.org
Wed Mar 4 19:14:14 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4050b01ba9ece02721ec496383baee219ca8cc2b
      https://github.com/llvm/llvm-project/commit/4050b01ba9ece02721ec496383baee219ca8cc2b
  Author: Greg Clayton <gclayton at fb.com>
  Date:   2020-03-04 (Wed, 04 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-gsymutil/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. Fixed memory sanitizer bot bugs as well.

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




More information about the All-commits mailing list