summaryrefslogtreecommitdiffstats
path: root/llvm/utils/unittest
Commit message (Collapse)AuthorAgeFilesLines
* Avoid linking LLVM component libraries with libLLVMAndrew Wilkins2016-02-122-5/+6
| | | | | | | | | | | Patch by Jack Howarth. When linking to libLLVM, don't also link to the component libraries that constitute libLLVM. Differential Revision: http://reviews.llvm.org/D16945 llvm-svn: 260641
* Remove autoconf supportChris Bieneman2016-01-263-87/+0
| | | | | | | | | | | | | | | | Summary: This patch is provided in preparation for removing autoconf on 1/26. The proposal to remove autoconf on 1/26 was discussed on the llvm-dev thread here: http://lists.llvm.org/pipermail/llvm-dev/2016-January/093875.html "I felt a great disturbance in the [build system], as if millions of [makefiles] suddenly cried out in terror and were suddenly silenced. I fear something [amazing] has happened." - Obi Wan Kenobi Reviewers: chandlerc, grosbach, bob.wilson, tstellarAMD, echristo, whitequark Subscribers: chfast, simoncook, emaste, jholewinski, tberghammer, jfb, danalbert, srhines, arsenm, dschuff, jyknight, dsanders, joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D16471 llvm-svn: 258861
* Fix undefined behavior in llvm's local changes to googletest.Nico Weber2016-01-192-1/+5
| | | | | | | | | r100895 landed an llvm-only change to add minix support to googletest. It did that by putting "defined()" in a macro, which has undefined behavior. Slightly reshuffle things to remove that undefined behavior. Also mention in README.LLVM that minix support is a local change. llvm-svn: 258190
* Reordering fields to reduce padding in LLVM. NFCBen Craig2015-12-141-24/+28
| | | | llvm-svn: 255554
* Rename all references to old mailing lists to new lists.llvm.org address.Tanya Lattner2015-08-051-1/+1
| | | | llvm-svn: 243999
* Make UnitTestMain/TestMain.cpp free from llvm/Config/config.h.NAKAMURA Takumi2015-07-061-3/+2
| | | | | | llvm/Config/config.h is unavailable outside of build tree. llvm-svn: 241523
* Revert r240271 (Fixed/added namespace ending comments using clang-tidy. NFC)Alexander Kornienko2015-06-231-1/+1
| | | | llvm-svn: 240393
* Fixed/added namespace ending comments using clang-tidy. NFCAlexander Kornienko2015-06-221-1/+1
| | | | | | A few more files that were fixed while preparing r240270. llvm-svn: 240271
* Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko2015-04-1110-86/+91
| | | | | | | | | | | | | | The patch is generated using clang-tidy misc-use-override check. This command was used: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \ -checks='-*,misc-use-override' -header-filter='llvm|clang' \ -j=32 -fix -format http://reviews.llvm.org/D8925 llvm-svn: 234679
* Add boolean to PrintStackTraceOnErrorSignal to disable crash reporting.Pete Cooper2015-04-071-1/+1
| | | | | | | | | | | | | | | | | | | The current crash reporting on Mac OS is only disabled via an environment variable. This adds a boolean (default false) which can also disable crash reporting. The only client right now is the unittests which don't ever want crash reporting, but do want to detect killed programs. Reduces the time to run the APFloat unittests on my machine from [----------] 47 tests from APFloatTest (51250 ms total) to [----------] 47 tests from APFloatTest (765 ms total) Reviewed by Reid Kleckner and Justin Bogner llvm-svn: 234353
* Fix a grammar issue I introduced.Chandler Carruth2015-03-111-1/+1
| | | | llvm-svn: 231894
* Inspired by r231891, use gender neutral pronouns in the places I'veChandler Carruth2015-03-112-2/+2
| | | | | | found in LLVM. llvm-svn: 231893
* Avoid explicitly declaring the copy assignment operator, as this ↵David Blaikie2015-03-031-3/+0
| | | | | | unnecessarily makes the copy ctor deprecated in C++11 llvm-svn: 231095
* Reapply r229185(cbieneman) -- Raising minimum required Visual Studio version ↵NAKAMURA Takumi2015-02-151-6/+0
| | | | | | | | to 2013. This is based on the discussions on: [LLVMdev] [RFC] Raising LLVM minimum required MSVC version to 2013 for trunk llvm-svn: 229320
* Revert r229185, "Raising minimum required Visual Studio version to 2013."NAKAMURA Takumi2015-02-141-0/+6
| | | | | | All builders are not ready yet. llvm-svn: 229199
* Raising minimum required Visual Studio version to 2013.Chris Bieneman2015-02-131-6/+0
| | | | | | This is based on the discussions on: [LLVMdev] [RFC] Raising LLVM minimum required MSVC version to 2013 for trunk llvm-svn: 229185
* Use -Wl,defs when linking.Rafael Espindola2015-01-201-2/+11
| | | | | | | | | | | | | | | ELF linkers by default allow shared libraries to contain undefined references and it is up to the dynamic linker to look for them. On COFF and MachO, that is not the case. This creates a situation where a .so might build on an ELF system, but the build of the corresponding .dylib or .dll will fail. This patch changes the cmake build to use -Wl,-z,defs when linking and updates the dependencies so that -DBUILD_SHARED_LIBS=ON build still works. llvm-svn: 226611
* Reverted r203879.Galina Kistanova2014-03-141-1/+1
| | | | llvm-svn: 203880
* Fixed misuse of isascii. Also fixes mingw32 build, see ↵Galina Kistanova2014-03-141-1/+1
| | | | | | http://msdn.microsoft.com/en-us/library/ms235417.aspx llvm-svn: 203879
* [CMake] Use LINK_LIBS instead of target_link_libraries().NAKAMURA Takumi2014-02-262-8/+4
| | | | llvm-svn: 202238
* Support GTest for FreeBSD platforms (9.x)Alexey Samsonov2014-02-192-2/+8
| | | | | | Patch by Viktor Kutuzov! llvm-svn: 201683
* [CMake] Add dependencies to gtest.NAKAMURA Takumi2014-02-102-0/+11
| | | | llvm-svn: 201079
* Comment out unused macro because of warningRenato Golin2014-01-301-0/+3
| | | | | | | | Modern compilers (Clang 3.4, GCC 4.8) warn on variadic macros being introduced in C99, which produces a huge number of useless diagnostics since this macro is unused in the whole project. llvm-svn: 200479
* Sink add_llvm_library(gtest_main) to UnitTestMain/CMakeLists.txt.NAKAMURA Takumi2014-01-102-3/+4
| | | | llvm-svn: 198933
* [weak vtables] Remove a bunch of weak vtablesJuergen Ributzka2013-11-1910-10/+42
| | | | | | | | | | | | This patch removes most of the trivial cases of weak vtables by pinning them to a single object file. The memory leaks in this version have been fixed. Thanks Alexey for pointing them out. Differential Revision: http://llvm-reviews.chandlerc.com/D2068 Reviewed by Andy llvm-svn: 195064
* Unbreak the build after r194997Alexey Samsonov2013-11-181-2/+0
| | | | llvm-svn: 194998
* Revert r194865 and r194874.Alexey Samsonov2013-11-1810-35/+10
| | | | | | | | | | | | This change is incorrect. If you delete virtual destructor of both a base class and a subclass, then the following code: Base *foo = new Child(); delete foo; will not cause the destructor for members of Child class. As a result, I observe plently of memory leaks. Notable examples I investigated are: ObjectBuffer and ObjectBufferStream, AttributeImpl and StringSAttributeImpl. llvm-svn: 194997
* gtest-death-test.cc: Move ~DeathTestFactory() to unbreak cygming build since ↵NAKAMURA Takumi2013-11-161-2/+2
| | | | | | r194865. llvm-svn: 194918
* Fix previous commit (r194865)Juergen Ributzka2013-11-151-0/+2
| | | | llvm-svn: 194874
* [weak vtables] Remove a bunch of weak vtablesJuergen Ributzka2013-11-1510-10/+35
| | | | | | | | | | | This patch removes most of the trivial cases of weak vtables by pinning them to a single object file. Differential Revision: http://llvm-reviews.chandlerc.com/D2068 Reviewed by Andy llvm-svn: 194865
* Move all of the GoogleTest files back to the same locations they occupyChandler Carruth2013-11-1512-33/+17
| | | | | | | | | | | | | externally to simplify our integration of GoogleTest into LLVM. Also, build the single source file gtest-all.cc instead of the individual source files as we don't expect these to change and thus gain nothing from increased incrementality in compiles. This makes our standard build of googletest exactly like upstream's recommended build and the sanitizer's build. It also simplifies the steps of importing a new version should we ever want one. llvm-svn: 194801
* Get the unittests compiling when building with cmake and the settingDuncan Sands2013-05-141-0/+4
| | | | | | -DLLVM_ENABLE_THREADS=false. llvm-svn: 181788
* Try to fix ProgramTest on FreeBSDReid Kleckner2013-04-301-0/+5
| | | | | | | This seemed like the cleanest way to find the test executable. Also fix the file mode. llvm-svn: 180770
* 'Hexadecimal' has two 'a's and only one 'i'.Matt Beaumont-Gay2013-02-251-2/+2
| | | | llvm-svn: 176031
* Add basic command line parsing to TestMain.Manuel Klimek2013-01-181-0/+2
| | | | | | | | | | | | | Summary: This allows unit tests for components that use Support/Debug.h to print debug information from test runs by specifying -debug when running the test. CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D301 llvm-svn: 172801
* unittest/googletest/Makefile: Unbreak out-of-tree build.NAKAMURA Takumi2012-12-071-1/+1
| | | | | | | - Use SOURCES instead of Source. See Makefile.rules and MakefileGuide.html. - Don't assume the current directory. $(wildcard *.cc) doesn't match anything on corresponding build directory. llvm-svn: 169568
* Try to unbreak makefile build by excluding gtest-all.cc sourceAlexey Samsonov2012-12-061-0/+2
| | | | llvm-svn: 169564
* Modify the LLVM checkout of googletest:Alexey Samsonov2012-12-063-1/+59
| | | | | | | | | | | 1) don't delete gtest-all.cc (which is used to gather all gtest source files in a single file) 2) make including LLVMSupport headers optional (on by default). Sanitizer tools may want to use their own versions of googletest compiled with specific flags, instead of the common googletest library used for all other LLVM/Clang unittests. llvm-svn: 169559
* Remove unused internal linkage variable.Richard Smith2012-11-271-2/+0
| | | | llvm-svn: 168729
* Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. ↵Sylvestre Ledru2012-09-2713-111/+111
| | | | | | See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164767 llvm-svn: 164768
* Fix a typo 'iff' => 'if'Sylvestre Ledru2012-09-2713-111/+111
| | | | llvm-svn: 164767
* GTest on Android needs a custom tmpdir path.Evgeniy Stepanov2012-09-101-0/+4
| | | | llvm-svn: 163501
* Fix Android build of gtest and lib/Support.Evgeniy Stepanov2012-09-041-1/+1
| | | | llvm-svn: 163131
* Fix a typo (the the => the)Sylvestre Ledru2012-07-231-1/+1
| | | | llvm-svn: 160621
* Remove dead private member variables from gtest.Benjamin Kramer2012-06-062-3/+1
| | | | llvm-svn: 158101
* Fix gtest build issue on Visual Studio 2012 RCJustin Holewinski2012-06-061-0/+6
| | | | llvm-svn: 158046
* llvm-build: Add support for non-installed libraries (e.g., gtest).Daniel Dunbar2012-05-151-0/+2
| | | | | | | - These libraries are only reported by llvm-config when run from a development tree. llvm-svn: 156838
* Help GCC along with code that's actually unreachable.David Blaikie2012-01-221-0/+3
| | | | | | | | Unfortunately I don't think there's a fix for this that will work upstream and also satisfy Clang's -Wunreachable-code, which is a pity. But I'll give it some more thought -perhaps there's some way out. llvm-svn: 148645
* Remove unreachable defaults from gtest.David Blaikie2012-01-213-5/+0
| | | | | | This will ensure LLVM and Clang build -Wswitch-enum-redundant-default (an on-by-default warning I'm about to add to Clang). llvm-svn: 148639
* build/unittests: Fix llvm-config names for gtest libraries, and bring MakefileDaniel Dunbar2011-12-152-2/+2
| | | | | | | library names in line with those used by CMake. - Patch by Johannes Obermayr, with tweaks by me. llvm-svn: 146706
OpenPOWER on IntegriCloud