From bf693061c872b302ba66a41af45573f24bd9812e Mon Sep 17 00:00:00 2001 From: weiqingzhou Date: Mon, 15 Jan 2024 13:11:58 +0800 Subject: [PATCH] run INPUT.Default() in every process in InputParaTest --- source/module_io/test/input_test_para.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/module_io/test/input_test_para.cpp b/source/module_io/test/input_test_para.cpp index 444fa1b05a..be07f2bd67 100644 --- a/source/module_io/test/input_test_para.cpp +++ b/source/module_io/test/input_test_para.cpp @@ -26,12 +26,13 @@ class InputParaTest : public ::testing::Test #ifdef __MPI TEST_F(InputParaTest, Bcast) { + INPUT.Default(); if (GlobalV::MY_RANK == 0) { - INPUT.Default(); + INPUT.suffix = "BcastTest"; } INPUT.Bcast(); - EXPECT_EQ(INPUT.suffix, "ABACUS"); + EXPECT_EQ(INPUT.suffix, "BcastTest"); EXPECT_EQ(INPUT.stru_file, ""); EXPECT_EQ(INPUT.kpoint_file, ""); EXPECT_EQ(INPUT.pseudo_dir, "");