[Lldb-commits] [PATCH] D34683: [unittests] Add a helper function for getting an input file

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 27 05:56:30 PDT 2017


labath created this revision.
Herald added subscribers: mgorny, emaste.

Fetching an input file required about five lines of code, and this was
repeated in multiple unit tests, with slight variations. Add a helper
function for doing that into the lldbUtilityMocks module (which I rename
to lldbUtilityHelpers to commemorate the fact it includes more than
mocks)


https://reviews.llvm.org/D34683

Files:
  unittests/Interpreter/CMakeLists.txt
  unittests/Interpreter/TestCompletion.cpp
  unittests/ObjectFile/ELF/CMakeLists.txt
  unittests/ObjectFile/ELF/TestObjectFileELF.cpp
  unittests/Process/minidump/CMakeLists.txt
  unittests/Process/minidump/MinidumpParserTest.cpp
  unittests/Symbol/CMakeLists.txt
  unittests/Symbol/TestDWARFCallFrameInfo.cpp
  unittests/SymbolFile/DWARF/CMakeLists.txt
  unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp
  unittests/SymbolFile/PDB/CMakeLists.txt
  unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
  unittests/Target/CMakeLists.txt
  unittests/Target/ModuleCacheTest.cpp
  unittests/Utility/CMakeLists.txt
  unittests/Utility/Helpers/CMakeLists.txt
  unittests/Utility/Helpers/MockTildeExpressionResolver.cpp
  unittests/Utility/Helpers/MockTildeExpressionResolver.h
  unittests/Utility/Helpers/TestUtilities.cpp
  unittests/Utility/Helpers/TestUtilities.h
  unittests/Utility/Mocks/CMakeLists.txt
  unittests/Utility/Mocks/MockTildeExpressionResolver.cpp
  unittests/Utility/Mocks/MockTildeExpressionResolver.h
  unittests/Utility/StructuredDataTest.cpp
  unittests/Utility/TildeExpressionResolverTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34683.104145.patch
Type: text/x-patch
Size: 22854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170627/4b7dc3aa/attachment-0001.bin>


More information about the lldb-commits mailing list