[lldb] Simplify and improve FileSpecTest
authorPavel Labath <pavel@labath.sk>
Thu, 28 Nov 2019 12:30:39 +0000 (13:30 +0100)
committerPavel Labath <pavel@labath.sk>
Thu, 28 Nov 2019 13:31:29 +0000 (14:31 +0100)
commitd1a561d446809cc3b5c11c163b9aa5ba4957af68
tree0bab27f620d2cf8d5015603b28151a36608d29e4
parent50e2ffa18da4247e4d45f421c3271b58b936c869
[lldb] Simplify and improve FileSpecTest

Summary:
A most of these tests create FileSpecs with a hardcoded style. Add
utility functions which create a file spec of a given style to simplify
things.

While in there add SCOPED_TRACE messages to tests which loop over
multiple inputs to ensure it's clear which of the inputs failed.

Reviewers: teemperor

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D70814
lldb/unittests/Utility/FileSpecTest.cpp