aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #2126 from ngie-eign:clang-add-more-strict-warningsGennadiy Civil2019-02-221-0/+1
|\ \ | |/ |/| | | PiperOrigin-RevId: 235220570
| * Add `cxx_strict_flags` for clang to match FreeBSD's WARNS flagsEnji Cooper2019-02-131-0/+1
| | | | | | | | Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* | Merge pull request #2137 from ngie-eign:clang-ignore-sign-conversionGennadiy Civil2019-02-214-8/+8
|\ \ | | | | | | | | | PiperOrigin-RevId: 235012245
| * | Ignore `-Wsign-conversion` issuesEnji Cooper2019-02-181-1/+1
| |/ | | | | | | | | | | | | | | | | | | clang++ compilation when `-Wsign-conversion` is currently broken and the issues within the code are varied and widespread. For the time being ignore `-Wsign-conversion` issues, even though some of them are valid and bleed over into issues that would be found with `-Wtautological-compare`, et al. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* | Merge pull request #2061 from samolisov:building-with-bazel-as-a-dll-on-windowsGennadiy Civil2019-02-205-17/+81
|\ \ | | | | | | | | | PiperOrigin-RevId: 234845565
| * | Enable CI on Windows (appveyor) with BazelPavel Samolysov2019-01-222-10/+66
| | | | | | | | | | | | Signed-off-by: Pavel Samolysov <samolisov@gmail.com>
| * | Enable building as a shared library (dll) on Windows with BazelPavel Samolysov2019-01-141-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the google test library is being built as a shared library using Bazel, so that there is a rule like cc_test( name = "iterator_traits_test", linkstatic = 0, deps = ["@gtest//:gtest_main"], ... ) in a BUILD file, the following error appears on Windows: INFO: Found 1 test target... ERROR: C:/../external/gtest/BUILD.bazel:55:1: output 'external/gtest/gtest.if.lib' was not created ERROR: C:/../external/gtest/BUILD.bazel:55:1: not all outputs were created or valid Target //test:iterator_traits_test failed to build The reason is a missing "win_def_file" attribute of the "gtest" and "gtest_main" rules in the BUILD.bazel inside the google test library package. The "windows_export_all_symbols" feature is added to the rules, this feature forces Bazel to export all symbols from the google test library to linker. I believe exporting all symbols from a testing library makes no problem for the application from a point of view on encapsulation. Signed-off-by: Pavel Samolysov <samolisov@gmail.com>
* | | Merge pull request #2125 from ngie-eign:clang-unused-parameterGennadiy Civil2019-02-202-2/+2
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 234844287
| * | | Fix clang `-Wunused-parameter` warningsEnji Cooper2019-02-132-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Comment out unused method parameters in their relevant definitions. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
| * | | Fix clang `-Winconsistent-missing-override` warningsEnji Cooper2019-02-131-3/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | `DescribeTo(..)` and `MatchAndExplain(..)` in `gmock-matchers_test` both override virtual methods. Remove the `virtual` keyword and apply `override` to them instead. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* | | Merge pull request #2123 from ngie-eign:clang-inconsistent-missing-overrideGennadiy Civil2019-02-202-4/+4
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 234840107
| * | | Fix clang `-Winconsistent-missing-override` warningsEnji Cooper2019-02-131-3/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | `DescribeTo(..)` and `MatchAndExplain(..)` in `gmock-matchers_test` both override virtual methods. Remove the `virtual` keyword and apply `override` to them instead. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* | | Googletest exportmisterg2019-02-202-16/+1
| | | | | | | | | | | | | | | | | | Internal Change PiperOrigin-RevId: 234823465
* | | Googletest exportAbseil Team2019-02-201-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | Update gtest-death-test to use new Fuchsia API Fuchsia has renamed this API and removed the need for several parameters. We now use the newer, simpler API. PiperOrigin-RevId: 234617715
* | | Merge pull request #2141 from dspinellis/index-fixGennadiy Civil2019-02-201-1/+1
|\ \ \ | |/ / |/| | Avoid array index out of range
| * | Avoid array index out of rangeDiomidis Spinellis2019-02-201-1/+1
|/ / | | | | | | Issue: #2140
* | Merge pull request #2112 from knuto:pr/fix_null_pointerGennadiy Civil2019-02-132-5/+6
|\ \ | | | | | | | | | PiperOrigin-RevId: 233825166
| * | Stop TestInfo::Run() calling a function through null pointerJonathan Wakely2019-02-111-1/+3
| | | | | | | | | | | | | | | | | | | | | If the object was never created then trying to call &Test::DeleteSelf_ will dereference a null pointer, with undefined behaviour. Fixes #845
* | | Merge pull request #2121 from ngie-eign:add-dragonflybsd-and-kfreebsd-supportGennadiy Civil2019-02-135-8/+103
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 233789488
| * | | Import `patch-bsd-defines` from FreeBSD ports [1]Enji Cooper2019-02-124-4/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As noted in the patch description: * Add DragonFly and GNU/kFreeBSD support. * Implement GetThreadCount() for BSDs. 1. https://svnweb.freebsd.org/ports/head/devel/googletest/files/patch-bsd-defines?revision=488934 Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* | | | Merge pull request #2114 from knuto:pr/libtool_supportGennadiy Civil2019-02-132-5/+25
|\ \ \ \ | | | | | | | | | | | | | | | PiperOrigin-RevId: 233773676
| * | | | Generate a libgtest.la to help libtool managing dependenciesKnut Omang2019-02-111-0/+21
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building and using googletest from an install tree we want libtool to generate rpath in the dependent binaries to allow them to be executed from a build without a need for LD_LIBRARY_PATH or similar. For libtool based project this happens automatically as projects generates .la files and install them. Provide such a file for gtest as well to allow it to work smoothly with libtool based projects. Signed-off-by: Knut Omang <knut.omang@oracle.com>
* | | | Merge pull request #2119 from ngie-eign:clang-wunused-private-fieldGennadiy Civil2019-02-132-0/+4
|\ \ \ \ | | | | | | | | | | | | | | | PiperOrigin-RevId: 233762751
| * | | | Fix -Wunused-private-field issues with clangEnji Cooper2019-02-122-0/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Provide dummy accessors for private values that are set in initializers, but not actually used. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* | | | Merge pull request #2120 from ngie-eign:clang-compile-with-basic-warns-flagsGennadiy Civil2019-02-132-4/+9
|\ \ \ \ | | | | | | | | | | | | | | | PiperOrigin-RevId: 233762520
| * | | | Compile clang with `-Wall -Wshadow -Werror`Enji Cooper2019-02-121-0/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | It was not compiling any of the code with warnings prior to this. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* | | | Merge pull request #2113 from knuto:pr/set_old_gtest_verGennadiy Civil2019-02-132-5/+8
|\ \ \ \ | |/ / / |/| | | | | | | PiperOrigin-RevId: 233748252
| * | | Set gtest version correctly for older cmake versionsKnut Omang2019-02-111-0/+4
| |/ / | | | | | | | | | Signed-off-by: Knut Omang <knut.omang@oracle.com>
* | | Googletest exportmisterg2019-02-1216-0/+825
| | | | | | | | | | | | | | | | | | Internal Change PiperOrigin-RevId: 233614147
* | | Merge pull request #2107 from ciband:feat/finish_platformio_supportGennadiy Civil2019-02-122-2/+3
|\ \ \ | | | | | | | | | | | | PiperOrigin-RevId: 233108234
| * | | fix: Correct *-all.cc file pathsChris Johnson2019-02-051-2/+2
| | | |
* | | | Merge pull request #2101 from MaEtUgR:fix-cmake-cygwinGennadiy Civil2019-02-123-9/+11
|\ \ \ \ | | | | | | | | | | | | | | | PiperOrigin-RevId: 233096223
| * | | | cmake: detect Cygwin which needs extensions to buildMatthias Grob2019-02-041-1/+3
| | | | |
| * | | | cmake: move global project definition to beginningMatthias Grob2019-02-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | such that necessary cmake variables to detect Cygwin are defined when setting the C++ standard and we can distinguish.
* | | | | Googletest exportAbseil Team2019-02-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Internal changes. PiperOrigin-RevId: 232953166
* | | | | Googletest exportAbseil Team2019-02-122-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix matcher comparisons for std::reference_wrapper. The googletest docs indicate that std::reference_wrapper should be used to for objects that should not be copied by the matcher (in fact, the ByRef() function is basically the same as a call to std::cref). However, for many types (such as std::string), the overloaded operator== will not resolve correctly. Specifically, this is problematic if operator== depends on template argument deduction, where the same type is named on LHS and RHS. Because template argument deduction happens before any implict conversions for purposes of overload resolution, attempting to compare T with std::reference_wrapper<T> simply looks like a comparison of unlike types. For exapmle, std::reference_wrapper<std::string> is implicitly convertible to 'const std::string&', which would be able to choose an overload specialization of operator==. However, the implicit conversion can only happen after template argument deduction for operator==, so a specialization that would other be an applicable overload is never considered. Note also that this change only affects matchers. There are good reasons that matchers may need to transparently hold a std::reference_wrapper. Other comparisons (like EXPECT_EQ, et. al.) don't need to capture a reference: they don't need to defer evaluation (as in googlemock), and they don't need to avoid copies (as the call chain of matchers does). PiperOrigin-RevId: 232499175
* | | | | Googletest exportAbseil Team2019-02-1216-825/+0
| |_|/ / |/| | | | | | | | | | | | | | | | | | | Internal change PiperOrigin-RevId: 232362580
* | | | Merge pull request #2100 from ngie-eign/test-clang-osx-every-travis-runGennadiy Civil2019-02-053-3/+17
|\ \ \ \ | | | | | | | | | | Test out changes with clang/OSX each PR using Travis CI
| * | | | Test out changes with clang/OSX each PR using Travis CIEnji Cooper2019-02-043-3/+17
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will help ensure that test coverage isn't missed when changes that can impact OSX with clang are submitted. Although not perfect, testing changes on OSX with clang is an ok proxy [for now] for testing changes on FreeBSD with clang (testing on FreeBSD is non-trivial, as Travis CI doesn't support operating systems other than Linux and OSX). In order to support this, install the packages via homebrew using a `addons::homebrew::packages` block (similar to `addons::apt::packages` for Ubuntu), as documented in the Travis CI docs ( https://docs.travis-ci.com/user/installing-dependencies/ ). While here, try pushing apt* calls into the Travis config for Ubuntu, instead of delaying the equivalent calls in the `ci/*.sh` scripts. Keep the `ci/*.sh` scripts for ease of testing locally (and extend the OSX one to install gcc 4.9 and llvm 3.9, like the travis config does). In order to accomodate this change (and because the homebrew package for llvm@3.9 doesn't automatically add clang*-3.9 to `$PATH`), `$PATH` needs to be adjusted to find the llvm@3.9 toolchain. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
* | | | Merge pull request #2103 from kw-udon/fix-json-in-advanced-mdGennadiy Civil2019-02-051-5/+4
|\ \ \ \ | | | | | | | | | | Fix an invalid example of JSON report in advanced.md
| * | | | Fix an invalid example of JSON report in advanced.mdKeiichi Watanabe2019-02-051-5/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | This is just a mistake in the document. Google Test doesn't output such an invalid JSON report. Signed-off-by: Keiichi Watanabe <keiichiw@chromium.org>
* | | | Update .travis.ymlGennadiy Civil2019-02-041-2/+2
| | | |
* | | | Update .travis.ymlGennadiy Civil2019-02-041-1/+1
| | | |
* | | | Googletest exportmisterg2019-02-043-27/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Address -Wgnu-zero-variadic-macro-arguments Originally in OSS PR #2063 https://github.com/google/googletest/pull/2063 Fix regression in INSTANTIATE_TEST_SUITE_P macro to accept function pointers properly. PiperOrigin-RevId: 232316698
* | | | Googletest exportmisterg2019-02-046-26/+67
| | | | | | | | | | | | | | | | | | | | | | | | Mark legacy _TEST_CASE_ macros as deprecated PiperOrigin-RevId: 232303251
* | | | Googletest exportAbseil Team2019-02-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update example code in gtest.h to prefer override over virtual now that it is widely available in C++11. PiperOrigin-RevId: 232057792
* | | | Merge pull request #2098 from ciband:feat/finish_platformio_supportGennadiy Civil2019-02-043-2/+6
|\ \ \ \ | |/ / / |/| / / | |/ / PiperOrigin-RevId: 232028696
| * | chore: Add PlatformIO supported platforms listChris Johnson2019-02-011-0/+1
| | |
| * | fix: Add Arduino to embedded platform listChris2019-01-311-2/+2
| | | | | | | | | | | | | | | Added Arduino to the embedded platform list to allow for a stubbed out version of GetCurrentDir.
| * | fix: Add *_all.cc files to ignore listChris2019-01-311-0/+2
| | | | | | | | | | | | | | | Added [gmock|gtest]_all.cc to PIO ignore list to avoid getting duplicate symbols since PIO will compile the individual files.