Skip to content

Commit 5196f92

Browse files
delete useless test
1 parent ea0c056 commit 5196f92

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

source/module_elecstate/test/elecstate_print_test.cpp

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -390,37 +390,4 @@ TEST_F(ElecStatePrintTest, PrintEtotColorS4)
390390
PARAM.input.noncolin = true;
391391
GlobalV::MY_RANK = 0;
392392
elecstate.print_etot(converged, iter, scf_thr, scf_thr_kin, duration, printe, pw_diag_thr, avg_iter, print);
393-
}
394-
395-
// TEST_F(ElecStatePrintTest, PrintEtotWarning)
396-
// {
397-
// GlobalV::ofs_running.open("test.dat", std::ios::out);
398-
// bool converged = false;
399-
// int iter = 1;
400-
// double scf_thr = 0.1;
401-
// double scf_thr_kin = 0.0;
402-
// double duration = 2.0;
403-
// int printe = 0;
404-
// double pw_diag_thr = 0.1;
405-
// int avg_iter = 2;
406-
// bool print = true;
407-
// elecstate.charge = new Charge;
408-
// elecstate.charge->nrxx = 100;
409-
// elecstate.charge->nxyz = 1000;
410-
// PARAM.input.imp_sol = true;
411-
// PARAM.input.efield_flag = true;
412-
// PARAM.input.gate_flag = true;
413-
// PARAM.sys.two_fermi = false;
414-
// PARAM.input.out_bandgap = true;
415-
// GlobalV::MY_RANK = 0;
416-
// PARAM.input.basis_type = "pw";
417-
// PARAM.input.scf_nmax = 100;
418-
// elecstate::tmp_ks_solver = "unknown";
419-
// testing::internal::CaptureStdout();
420-
// EXPECT_EXIT(elecstate.print_etot(converged, iter, scf_thr, scf_thr_kin, duration, printe, pw_diag_thr, avg_iter, print), ::testing::ExitedWithCode(0), "");
421-
// output = testing::internal::GetCapturedStdout();
422-
// EXPECT_THAT(output, testing::HasSubstr("print_etot found unknown ks_solver_type"));
423-
// GlobalV::ofs_running.close();
424-
// delete elecstate.charge;
425-
// std::remove("test.dat");
426-
// }
393+
}

0 commit comments

Comments
 (0)