[LINT] Fixed lint issues after clang-format update

This commit is contained in:
Gliniak
2024-06-13 20:56:56 +02:00
parent ce990e2828
commit ec267c348a
13 changed files with 21 additions and 28 deletions

View File

@@ -975,8 +975,7 @@ TEST_CASE("Create and Run Thread", "[thread]") {
thread = Thread::Create(params, [] {
Thread::Exit(-1);
FAIL("Function must not return");
while (true)
;
while (true);
});
result = Wait(thread.get(), false, 1s);
REQUIRE(result == WaitResult::kSuccess);
@@ -992,8 +991,7 @@ TEST_CASE("Create and Run Thread", "[thread]") {
thread = Thread::Create(params, [] {
Thread::Exit(-1);
FAIL("Function must not return");
while (true)
;
while (true);
});
REQUIRE(thread != nullptr);
result = Wait(thread.get(), false, 1s);
@@ -1128,8 +1126,7 @@ TEST_CASE("Test Thread QueueUserCallback", "[thread]") {
order++; // 2
AlertableSleep(1s);
FAIL("Thread should have been terminated during alertable sleep");
while (true)
;
while (true);
});
REQUIRE(!spin_wait_for(100ms, [&] { return order == 3; })); // timeout
thread->QueueUserCallback([] { Thread::Exit(0); });