unit testing - Can google test handle multithreaded test output on windows -


i hit problem boost unit running on windows output multiple threads not atomic, corrupts output xml confuses ci system if put tests or messages in threads other main thread.

i can't see boost unit option control this, wondering if google test can make worth switching google test instead (searching wiki didn't find me anything).

or there other approach should use (it's useful when running test command line on linux see output. don't want break windows ci)?

gtest's output mutex-protected, multi-threading doesn't produce garbled output.

the function work addtestpartresult. @ line 3713, can see lock being applied:

internal::mutexlock lock(&mutex_); 

and @ 3732 result printed in call:

impl_->gettestpartresultreporterforcurrentthread()->reporttestpartresult(result); 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -