]> git-server-git.apps.pok.os.sepia.ceph.com Git - googletest.git/commitdiff
Googletest export
authorAbseil Team <absl-team@google.com>
Tue, 16 Apr 2019 04:18:04 +0000 (00:18 -0400)
committerAlex Strelnikov <strel@google.com>
Tue, 16 Apr 2019 20:17:41 +0000 (16:17 -0400)
[googletest] Fix death test condition.

PiperOrigin-RevId: 243742424

googletest/src/gtest-death-test.cc

index d52cff8ef34056aa5c8346fa0e6d13b28dd8ad59..76b87a11fc9fa1e5e5941c1802cb8e13e692a8cb 100644 (file)
@@ -994,7 +994,7 @@ DeathTest::TestRole FuchsiaDeathTest::AssumeRole() {
   zx_handle_t child_pipe_handle;
   int child_pipe_fd;
   status = fdio_pipe_half2(&child_pipe_fd, &child_pipe_handle);
-  GTEST_DEATH_TEST_CHECK_(status != ZX_OK);
+  GTEST_DEATH_TEST_CHECK_(status == ZX_OK);
   set_read_fd(child_pipe_fd);
 
   // Set the pipe handle for the child.