@@ -59,7 +59,7 @@ TEST_F(ToolCheckTest, Name)
5959 EXPECT_THAT (output,testing::HasSubstr (" not match" ));
6060 // quit check: quit = false
6161 testing::internal::CaptureStdout ();
62- EXPECT_EXIT (ModuleBase::CHECK_NAME (ifs, " abacus" ), ::testing::ExitedWithCode (0 ), " " );
62+ EXPECT_EXIT (ModuleBase::CHECK_NAME (ifs, " abacus" ), ::testing::ExitedWithCode (1 ), " " );
6363 output = testing::internal::GetCapturedStdout ();
6464 EXPECT_THAT (output,testing::HasSubstr (" NOTICE" ));
6565 ifs.close ();
@@ -80,7 +80,7 @@ TEST_F(ToolCheckTest, Int)
8080 EXPECT_THAT (output,testing::HasSubstr (" not match" ));
8181 // quit check: quit = false
8282 testing::internal::CaptureStdout ();
83- EXPECT_EXIT (ModuleBase::CHECK_INT (ifs, 80 ), ::testing::ExitedWithCode (0 ), " " );
83+ EXPECT_EXIT (ModuleBase::CHECK_INT (ifs, 80 ), ::testing::ExitedWithCode (1 ), " " );
8484 output = testing::internal::GetCapturedStdout ();
8585 EXPECT_THAT (output,testing::HasSubstr (" NOTICE" ));
8686 ifs.close ();
@@ -101,7 +101,7 @@ TEST_F(ToolCheckTest, Double)
101101 EXPECT_THAT (output,testing::HasSubstr (" not match" ));
102102 // quit check
103103 testing::internal::CaptureStdout ();
104- EXPECT_EXIT (ModuleBase::CHECK_DOUBLE (ifs, 0.22998 ), ::testing::ExitedWithCode (0 ), " " );
104+ EXPECT_EXIT (ModuleBase::CHECK_DOUBLE (ifs, 0.22998 ), ::testing::ExitedWithCode (1 ), " " );
105105 output = testing::internal::GetCapturedStdout ();
106106 EXPECT_THAT (output,testing::HasSubstr (" NOTICE" ));
107107 ifs.close ();
@@ -122,7 +122,7 @@ TEST_F(ToolCheckTest, String)
122122 EXPECT_THAT (output,testing::HasSubstr (" not match" ));
123123 // quit check
124124 testing::internal::CaptureStdout ();
125- EXPECT_EXIT (ModuleBase::CHECK_STRING (ifs, " scf" ), ::testing::ExitedWithCode (0 ), " " );
125+ EXPECT_EXIT (ModuleBase::CHECK_STRING (ifs, " scf" ), ::testing::ExitedWithCode (1 ), " " );
126126 output = testing::internal::GetCapturedStdout ();
127127 EXPECT_THAT (output,testing::HasSubstr (" NOTICE" ));
128128 ifs.close ();
0 commit comments