Hide C++ symbols in libxgboost.so when building Python wheel (#5590)
* Hide C++ symbols in libxgboost.so when building Python wheel * Update Jenkinsfile * Add test * Upgrade rabit * Add setup.py option. Co-authored-by: fis <jm.yuan@outlook.com>
This commit is contained in:
committed by
GitHub
parent
660be66207
commit
ef26bc45bf
@@ -141,4 +141,11 @@ TEST(CAPI, JsonModelIO) {
|
||||
ASSERT_EQ(model_str_0.front(), '{');
|
||||
ASSERT_EQ(model_str_0, model_str_1);
|
||||
}
|
||||
|
||||
TEST(CAPI, CatchDMLCError) {
|
||||
DMatrixHandle out;
|
||||
ASSERT_EQ(XGDMatrixCreateFromFile("foo", 0, &out), -1);
|
||||
EXPECT_THROW({ dmlc::Stream::Create("foo", "r"); }, dmlc::Error);
|
||||
}
|
||||
|
||||
} // namespace xgboost
|
||||
|
||||
Reference in New Issue
Block a user