This commit is contained in:
SysRay 2024-06-03 17:18:51 +02:00
parent b181559a19
commit 647e001d49
2 changed files with 10 additions and 15 deletions

View File

@ -160,6 +160,5 @@ class INetworking {
virtual int httpsSetSslVersion(int id, SceSslVersion version) = 0;
};
__APICALL INetworking& accessNetworking();
#undef __APICALL

View File

@ -138,8 +138,7 @@ TEST(core_semaphore, signal_1) {
EXPECT_EQ(res, Ok);
}
});
std::this_thread::sleep_for(
std::chrono::microseconds(100)); // this or mock condition var
std::this_thread::sleep_for(std::chrono::microseconds(100)); // this or mock condition var
auto resSignal = sem->signal(1);
EXPECT_EQ(resSignal, Ok);
@ -180,8 +179,7 @@ TEST(core_semaphore, signal_2) {
EXPECT_EQ(res, Ok);
}
});
std::this_thread::sleep_for(
std::chrono::microseconds(100)); // this or mock condition var
std::this_thread::sleep_for(std::chrono::microseconds(100)); // this or mock condition var
{
auto resSignal = sem->signal(2);
@ -216,8 +214,7 @@ TEST(core_semaphore, signal_2) {
EXPECT_EQ(res, Ok);
}
});
std::this_thread::sleep_for(
std::chrono::microseconds(100)); // this or mock condition var
std::this_thread::sleep_for(std::chrono::microseconds(100)); // this or mock condition var
{
auto resSignal = sem->signal(4);
@ -262,8 +259,7 @@ TEST(core_semaphore, signal_exit) {
EXPECT_EQ(res, getErr(ErrCode::_ECANCELED));
}
});
std::this_thread::sleep_for(
std::chrono::microseconds(100)); // this or mock condition var
std::this_thread::sleep_for(std::chrono::microseconds(100)); // this or mock condition var
auto resSignal = sem->signal(2);
EXPECT_EQ(resSignal, Ok);