mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
msvc: get UnitTests compiling
Choose it from VS or pass /p:RunUnitTests=true to msbuild
This commit is contained in:
parent
0625b5defb
commit
839cace5ff
10 changed files with 146 additions and 7 deletions
|
@ -37,7 +37,7 @@ TEST(Flag, MultiThreaded)
|
|||
int count = 0;
|
||||
const int ITERATIONS_COUNT = 100000;
|
||||
|
||||
auto setter = [&f]() {
|
||||
auto setter = [&]() {
|
||||
for (int i = 0; i < ITERATIONS_COUNT; ++i)
|
||||
{
|
||||
while (f.IsSet());
|
||||
|
@ -45,7 +45,7 @@ TEST(Flag, MultiThreaded)
|
|||
}
|
||||
};
|
||||
|
||||
auto clearer = [&f, &count]() {
|
||||
auto clearer = [&]() {
|
||||
for (int i = 0; i < ITERATIONS_COUNT; ++i)
|
||||
{
|
||||
while (!f.IsSet());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue