Windows: Removed `AwaitAssertSignaled` etc. from `gtest.hpp`.

Because Windows does not generally use signals, and so does not have
macros like `WTERMSIG`, the `gtest.hpp` wrapper code which depends on
them is no longer compiled on Windows.

Review: https://reviews.apache.org/r/65861/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4c50a551
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/4c50a551
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/4c50a551

Branch: refs/heads/master
Commit: 4c50a55122bd353862d8d9164861c1143c8d9a8b
Parents: 76cf8ef
Author: Akash Gupta <akash-gu...@hotmail.com>
Authored: Tue Mar 6 13:11:14 2018 -0800
Committer: Andrew Schwartzmeyer <and...@schwartzmeyer.com>
Committed: Tue Mar 6 13:31:42 2018 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/include/process/gtest.hpp | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/4c50a551/3rdparty/libprocess/include/process/gtest.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/gtest.hpp 
b/3rdparty/libprocess/include/process/gtest.hpp
index dd4c9bd..79ea2b1 100644
--- a/3rdparty/libprocess/include/process/gtest.hpp
+++ b/3rdparty/libprocess/include/process/gtest.hpp
@@ -712,6 +712,8 @@ inline ::testing::AssertionResult AwaitAssertExitStatusNe(
       process::TEST_AWAIT_TIMEOUT)
 
 
+// Signals are't used on Windows, so #ifdef these out.
+#ifndef __WINDOWS__
 inline ::testing::AssertionResult AwaitAssertSignaled(
     const char* actualExpr,
     const char* durationExpr,
@@ -851,5 +853,6 @@ inline ::testing::AssertionResult AwaitAssertTermSigNe(
 // inline ::testing::AssertionResult AwaitAssertStopped(...)
 // inline ::testing::AssertionResult AwaitAssertStopSigEq(...)
 // inline ::testing::AssertionResult AwaitAssertStopSigNe(...)
+#endif // __WINDOWS__
 
 #endif // __PROCESS_GTEST_HPP__

Reply via email to