@@ -112,8 +112,6 @@ TEST_F(ElecStatePrintTest, PrintFormat)
112112 std::remove (" test.dat" );
113113}
114114
115-
116-
117115TEST_F (ElecStatePrintTest, PrintEtot)
118116{
119117 GlobalV::ofs_running.open (" test.dat" , std::ios::out);
@@ -153,7 +151,10 @@ TEST_F(ElecStatePrintTest, PrintEtot)
153151 {
154152 PARAM.input .ks_solver = ks_solvers[i];
155153 testing::internal::CaptureStdout ();
156- elecstate::print_etot (ucell.magnet ,elecstate,converged, iter, scf_thr, scf_thr_kin, duration, pw_diag_thr, avg_iter, print);
154+
155+ elecstate::print_etot (ucell.magnet ,elecstate,converged, iter, scf_thr,
156+ scf_thr_kin, duration, pw_diag_thr, avg_iter, print);
157+
157158 output = testing::internal::GetCapturedStdout ();
158159 if (PARAM.input .ks_solver == " cg" )
159160 {
@@ -197,6 +198,7 @@ TEST_F(ElecStatePrintTest, PrintEtot)
197198 std::remove (" test.dat" );
198199}
199200
201+ /*
200202TEST_F(ElecStatePrintTest, PrintEtot2)
201203{
202204 GlobalV::ofs_running.open("test.dat", std::ios::out);
@@ -237,6 +239,7 @@ TEST_F(ElecStatePrintTest, PrintEtot2)
237239 delete elecstate.charge;
238240 std::remove("test.dat");
239241}
242+ */
240243
241244TEST_F (ElecStatePrintTest, PrintEtotColorS2)
242245{
@@ -267,6 +270,7 @@ TEST_F(ElecStatePrintTest, PrintEtotColorS2)
267270 delete elecstate.charge ;
268271}
269272
273+
270274TEST_F (ElecStatePrintTest, PrintEtotColorS4)
271275{
272276 bool converged = false ;
0 commit comments