"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "googletest/test/gtest_skip_in_environment_setup_test.cc" between
googletest-release-1.11.0.tar.gz and googletest-release-1.12.0.tar.gz

About: GoogleTest is Google's (unit) testing and mocking framework for C++ tests.

gtest_skip_in_environment_setup_test.cc  (googletest-release-1.11.0):gtest_skip_in_environment_setup_test.cc  (googletest-release-1.12.0)
skipping to change at line 34 skipping to change at line 34
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// //
// This test verifies that skipping in the environment results in the // This test verifies that skipping in the environment results in the
// testcases being skipped. // testcases being skipped.
#include <iostream> #include <iostream>
#include "gtest/gtest.h" #include "gtest/gtest.h"
class SetupEnvironment : public testing::Environment { class SetupEnvironment : public testing::Environment {
public: public:
void SetUp() override { GTEST_SKIP() << "Skipping the entire environment"; } void SetUp() override { GTEST_SKIP() << "Skipping the entire environment"; }
}; };
TEST(Test, AlwaysFails) { EXPECT_EQ(true, false); } TEST(Test, AlwaysFails) { EXPECT_EQ(true, false); }
int main(int argc, char **argv) { int main(int argc, char **argv) {
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)