mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-15 15:44:23 -04:00
kern/test: add some scheduler tests (yields work correctly, all non-special priorities are cooperative/not pre-emptive
This commit is contained in:
parent
ad03be9a38
commit
1f8bf41f0b
8 changed files with 514 additions and 9 deletions
|
@ -54,6 +54,13 @@ namespace ams {
|
|||
}
|
||||
|
||||
void Main() {
|
||||
/* Ensure our thread priority and core mask is correct. */
|
||||
{
|
||||
auto * const cur_thread = os::GetCurrentThread();
|
||||
os::SetThreadCoreMask(cur_thread, 3, (1ul << 3));
|
||||
os::ChangeThreadPriority(cur_thread, 0);
|
||||
}
|
||||
|
||||
/* Run tests. */
|
||||
Catch::Session().run(os::GetHostArgc(), os::GetHostArgv());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue