1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Log: Silence errorstream during unittests

This commit is contained in:
kwolekr
2014-12-12 15:12:31 -05:00
parent 10e0cf8b2c
commit 093b1b47d9
3 changed files with 30 additions and 1 deletions

View File

@@ -2177,6 +2177,8 @@ void run_tests()
IWritableNodeDefManager *ndef = createNodeDefManager();
define_some_nodes(idef, ndef);
log_set_lev_silence(LMT_ERROR, true);
infostream<<"run_tests() started"<<std::endl;
TEST(TestUtilities);
TEST(TestPath);
@@ -2198,6 +2200,8 @@ void run_tests()
dout_con<<"=== END RUNNING UNIT TESTS FOR CONNECTION ==="<<std::endl;
}
log_set_lev_silence(LMT_ERROR, false);
delete idef;
delete ndef;