Speculatively adjust gtest's UnitTest::AddTestPartResult() to not rely on volatile...
authorRoman Lebedev <lebedev.ri@gmail.com>
Fri, 9 Jul 2021 10:30:17 +0000 (13:30 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 9 Jul 2021 10:32:18 +0000 (13:32 +0300)
commitaa9f58cc2c48ca6cfc853a2467cd775dc7622746
tree900933217981104d4c05955807b18c55cdcc7c32
parent2df37d5ddd38091aafbb7d338660e58836f4ac80
Speculatively adjust gtest's UnitTest::AddTestPartResult() to not rely on volatile store to null trapping

This fallback path is used at least on PPC.
If this doesn't work on some compilers that take this path,
then this will have to be changed to either abort,
or partitioned to do different things based on the compiler.

Please refer to https://reviews.llvm.org/D105338.
llvm/utils/unittest/googletest/src/gtest.cc