Refactor rabit tests (#6096)

* Merge rabit tests into XGBoost.
* Run them On CI.
* Simplification for CMake scripts.
This commit is contained in:
Jiaming Yuan
2020-09-09 12:30:29 +08:00
committed by GitHub
parent 318bffaa10
commit 3dcd85fab5
13 changed files with 79 additions and 318 deletions

View File

@@ -0,0 +1,6 @@
#include <gtest/gtest.h>
#include <rabit/internal/utils.h>
TEST(Utils, Assert) {
EXPECT_THROW({rabit::utils::Assert(false, "foo");}, dmlc::Error);
}