File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
SingleSource/UnitTests/Atomic Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,8 @@ void test_int_xchg_n() {
263263 pool.emplace_back (looper_numeric_xchg_nonatomic<T>, &iint, model);
264264 for (int n = 0 ; n < kThreads ; ++n) pool[n].join ();
265265 pool.clear ();
266- if (lt (aint, iint) || aint != val * kExpected ) fail ();
266+ if (lt (aint, iint) || aint != val * kExpected )
267+ fail ();
267268 }
268269}
269270
@@ -279,7 +280,8 @@ void test_int_cmpxchg() {
279280 success_model, fail_model);
280281 for (int n = 0 ; n < kThreads ; ++n) pool[n].join ();
281282 pool.clear ();
282- if (lt (aint, iint) || aint != static_cast <T>(val) * kExpected ) fail ();
283+ if (lt (aint, iint) || aint != static_cast <T>(val) * kExpected )
284+ fail ();
283285 }
284286 }
285287}
@@ -310,7 +312,8 @@ void test_int_cmpxchg_n() {
310312 fail_model);
311313 for (int n = 0 ; n < kThreads ; ++n) pool[n].join ();
312314 pool.clear ();
313- if (lt (aint, iint) || aint != static_cast <T>(val) * kExpected ) fail ();
315+ if (lt (aint, iint) || aint != static_cast <T>(val) * kExpected )
316+ fail ();
314317 }
315318 }
316319}
You can’t perform that action at this time.
0 commit comments