test/svc: add test for thread create

This commit is contained in:
Michael Scire 2021-11-08 13:29:00 -08:00
parent 21b7884653
commit 1d39e06f32
3 changed files with 109 additions and 1 deletions

View file

@ -46,7 +46,7 @@ namespace ams::test {
/* Wait long enough that we can be confident preemption will occur, and therefore our interrupt flag will be set. */
{
constexpr auto MinimumTicksToGuaranteeInterruptFlag = ::ams::svc::Tick(PreemptionTimeSpan) + 1;
constexpr auto MinimumTicksToGuaranteeInterruptFlag = ::ams::svc::Tick(PreemptionTimeSpan) + ::ams::svc::Tick(PreemptionTimeSpan) + 2;
auto GetSystemTickForPinnedThread = []() ALWAYS_INLINE_LAMBDA -> ::ams::svc::Tick {
s64 v;