Run test_shmem.cpp only in unix platforms

This commit is contained in:
Hector Espert 2021-03-17 19:55:27 +01:00 committed by GitHub
parent 69d1f30809
commit ec8c11a108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -15,6 +15,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
#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