From ec8c11a108881c8f80cdb29d9b7bb695021d4135 Mon Sep 17 00:00:00 2001 From: Hector Espert Date: Wed, 17 Mar 2021 19:55:27 +0100 Subject: [PATCH] Run test_shmem.cpp only in unix platforms --- tests/unit-tests/lib/test_shmem.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/unit-tests/lib/test_shmem.cpp b/tests/unit-tests/lib/test_shmem.cpp index 800a0f155c..76afea9857 100644 --- a/tests/unit-tests/lib/test_shmem.cpp +++ b/tests/unit-tests/lib/test_shmem.cpp @@ -15,6 +15,8 @@ // You should have received a copy of the GNU Lesser General Public License // along with BOINC. If not, see . +#ifndef _WIN32 + #include "gtest/gtest.h" #include "shmem.h" @@ -55,9 +57,6 @@ namespace test_shmem { // Objects declared here can be used by all tests in the test case for Foo. }; - -#ifndef _WIN32 - // Test shmem functions for Unix/Linux/Mac V5 applications TEST_F(test_shmem, shmem) { void* p; @@ -68,6 +67,6 @@ namespace test_shmem { EXPECT_EQ(destroy_shmem(KEY), 0); } -#endif - } // namespace + +#endif