summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Testing/Support/SupportHelpers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix error with SmallString implicit conversion.Zachary Turner2018-09-061-3/+1
| | | | llvm-svn: 341597
* Fix a configure issue with Visual Studio generators.Zachary Turner2018-09-061-11/+32
| | | | | | | | | | | | | We can't put the unittest source dir map in the configuration specific directory because VS doesn't have a configure-specific directory, instead it only knows this at runtime. So we have to remove this from the path. This in turn means that the path will be slightly different in VS configurations vs non vs configurations. In the former, the source map will be in the parent directory of the executable, and in the latter it will be in the same directory as the executable. So check both. llvm-svn: 341590
* Quick fix for -DBUILD_SHARED_LIBS=on build after rL341502Fangrui Song2018-09-061-4/+2
| | | | | | | | libLLVMTestingSupport.so references a symbol in utils/unittest/UnitTestMain/TestMain.cpp (a layering issue) and will cause a link error because of -Wl,-z,defs (cmake/modules/HandleLLVMOptions.cmake) Waiting zturner for a better fix. llvm-svn: 341580
* Fix some warnings.Zachary Turner2018-09-061-1/+1
| | | | llvm-svn: 341508
* Fix silly error in unittest helper.Zachary Turner2018-09-051-1/+1
| | | | llvm-svn: 341505
* Add support for unittest inputs.Zachary Turner2018-09-051-0/+36
Occasionally it is useful to have unittest which take inputs. While we normally try to have this test be more of a lit test we occasionally don't have tools that can exercise the code in the right way to test certain things. LLDB has been using this style of unit test for a while, particularly with regards to how it tests core dump and minidump file parsing. Recently i needed this as well for the case where we want to test that some of the PDB reading code works correctly. It needs to exercise the code in a way that is not covered by any dumper and would be impractical to implement in one of the dumpers, but requires a valid PDB file. Since this is now needed by more than one project, it makes sense to have this be a generally supported thing that unit tests can do, and we just encourage people to use this sparingly. Differential Revision: https://reviews.llvm.org/D51561 llvm-svn: 341502
OpenPOWER on IntegriCloud