Skip to content

Commit 8a8ec04

Browse files
committed
Fix global_func_text
1 parent bab5727 commit 8a8ec04

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/module_base/test/global_function_test.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,9 @@ TEST_F(GlobalFunctionTest,MemAvailable)
691691

692692
TEST_F(GlobalFunctionTest,BlockHere)
693693
{
694+
#ifdef __MPI
695+
#undef __MPI
696+
#endif
694697
std::string output2;
695698
std::string block_in="111";
696699
GlobalV::MY_RANK=1;
@@ -705,6 +708,9 @@ TEST_F(GlobalFunctionTest,BlockHere)
705708

706709
TEST_F(GlobalFunctionTest,BlockHere2)
707710
{
711+
#ifdef __MPI
712+
#undef __MPI
713+
#endif
708714
std::string output2;
709715
std::string block_in="111";
710716
GlobalV::MY_RANK=0;
@@ -723,6 +729,9 @@ TEST_F(GlobalFunctionTest,BlockHere2)
723729

724730
TEST_F(GlobalFunctionTest,BlockHere3)
725731
{
732+
#ifdef __MPI
733+
#undef __MPI
734+
#endif
726735
std::string output2;
727736
std::string block_in="111";
728737
GlobalV::MY_RANK=0;

0 commit comments

Comments
 (0)