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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user