Skip to content

Commit

Permalink
Skip standaone test on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Sep 8, 2020
1 parent cf8a3ac commit f54d79b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rabit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ foreach(lib ${rabit_libs})
"$<BUILD_INTERFACE:${xgboost_SOURCE_DIR}/dmlc-core/include>")
endforeach()

if (GOOGLE_TEST)
if (GOOGLE_TEST AND WIN32)
enable_testing()

# rabit mock based integration tests
Expand Down
4 changes: 2 additions & 2 deletions tests/cpp/rabit/allreduce_base_test.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define RABIT_CXXTESTDEFS_H
#if defined(_WIN32)
#if !defined(_WIN32)
#include <gtest/gtest.h>

#include <string>
Expand Down Expand Up @@ -65,4 +65,4 @@ TEST(AllreduceBase, InitWithRingReduce)
EXPECT_EQ(base.task_id, "1");
EXPECT_EQ(base.reduce_ring_mincount, 1ul);
}
#endif // defined(_WIN32)
#endif // !defined(_WIN32)
4 changes: 2 additions & 2 deletions tests/cpp/rabit/allreduce_mock_test.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define RABIT_CXXTESTDEFS_H
#if defined(_WIN32)
#if !defined(_WIN32)
#include <gtest/gtest.h>

#include <string>
Expand Down Expand Up @@ -50,4 +50,4 @@ TEST(AllreduceMock, MockGather)
m.seq_counter=22;
EXPECT_THROW({m.Allgather(nullptr,0,0,0,0);}, dmlc::Error);
}
#endif // defined(_WIN32)
#endif // !defined(_WIN32)
4 changes: 2 additions & 2 deletions tests/cpp/rabit/allreduce_robust_test.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define RABIT_CXXTESTDEFS_H
#if defined(_WIN32)
#if !defined(_WIN32)
#include <gtest/gtest.h>

#include <chrono>
Expand Down Expand Up @@ -232,4 +232,4 @@ TEST(AllreduceRobust, ShutDownBeforeTimeout)
std::this_thread::sleep_for(std::chrono::milliseconds(10));
m.Shutdown();
}
#endif // defined(_WIN32)
#endif // !defined(_WIN32)

0 comments on commit f54d79b

Please sign in to comment.