diff options
| author | 2019-10-12 07:23:08 -0400 | |
|---|---|---|
| committer | 2019-10-12 07:23:08 -0400 | |
| commit | 91f6333e238eb3be972c4f5e1634948a0e414ba4 (patch) | |
| tree | 468dda4167bacf9a029bb9bae9b828782d40bb22 | |
| parent | Core_Timing: Address Feedback and suppress warnings. (diff) | |
| download | yuzu-91f6333e238eb3be972c4f5e1634948a0e414ba4.tar.gz yuzu-91f6333e238eb3be972c4f5e1634948a0e414ba4.tar.xz yuzu-91f6333e238eb3be972c4f5e1634948a0e414ba4.zip | |
Core_Timing: Fix tests.
Diffstat (limited to '')
| -rw-r--r-- | src/tests/core/core_timing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/core/core_timing.cpp b/src/tests/core/core_timing.cpp index 467eb4736..3443bf05e 100644 --- a/src/tests/core/core_timing.cpp +++ b/src/tests/core/core_timing.cpp | |||
| @@ -116,11 +116,11 @@ TEST_CASE("CoreTiming[FairSharing]", "[core]") { | |||
| 116 | keep_running = false; | 116 | keep_running = false; |
| 117 | for (u32 active_core = 0; active_core < 4; ++active_core) { | 117 | for (u32 active_core = 0; active_core < 4; ++active_core) { |
| 118 | core_timing.SwitchContext(active_core); | 118 | core_timing.SwitchContext(active_core); |
| 119 | if (core_timing.CurrentContextCanRun()) { | 119 | if (core_timing.CanCurrentContextRun()) { |
| 120 | core_timing.AddTicks(std::min<s64>(advances, core_timing.GetDowncount())); | 120 | core_timing.AddTicks(std::min<s64>(advances, core_timing.GetDowncount())); |
| 121 | core_timing.Advance(); | 121 | core_timing.Advance(); |
| 122 | } | 122 | } |
| 123 | keep_running |= core_timing.CurrentContextCanRun(); | 123 | keep_running |= core_timing.CanCurrentContextRun(); |
| 124 | } | 124 | } |
| 125 | } while (keep_running); | 125 | } while (keep_running); |
| 126 | u64 current_time_2 = core_timing.GetTicks(); | 126 | u64 current_time_2 = core_timing.GetTicks(); |