Fix GSYM tests to run the yaml files and fix test failures on some machines.
authorGreg Clayton <gclayton@fb.com>
Fri, 28 Feb 2020 23:25:47 +0000 (15:25 -0800)
committerGreg Clayton <gclayton@fb.com>
Sat, 29 Feb 2020 01:21:43 +0000 (17:21 -0800)
commitd334ce0b5acb945d6202d0ab6a17bdca530f50c1
tree640dec8313d74217b1d27e6cb659657b5fe3c823
parent9fcd212e2f678fdbdf304399a1e58ca490dc54d1
Fix GSYM tests to run the yaml files and fix test failures on some machines.

Summary: 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.

Reviewers: aprantl, thakis, MaskRay, aadsm, wallace

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75390
llvm/test/tools/llvm-gsymutil/lit.local.cfg [new file with mode: 0644]
llvm/tools/llvm-gsym/llvm-gsymutil.cpp