[Testing] Inclrease timer test timeout and update default test targets
The threading test is verifying that the timer fires, not that it fires within a specific timeout, so increasing to 100 to keep it from failing randomly. Also removing xenia-cpu-ppc-tests from list of default targets as they take forever to run, they can still be run run using xb test with --target xenia-cpu-ppc-tests explicitly.
This commit is contained in:
@@ -815,14 +815,14 @@ TEST_CASE("Wait on Timer", "[timer]") {
|
|||||||
// Test Repeating
|
// Test Repeating
|
||||||
REQUIRE(timer->SetRepeatingAfter(1ms, 10ms));
|
REQUIRE(timer->SetRepeatingAfter(1ms, 10ms));
|
||||||
for (int i = 0; i < 10; ++i) {
|
for (int i = 0; i < 10; ++i) {
|
||||||
result = Wait(timer.get(), false, 20ms);
|
result = Wait(timer.get(), false, 100ms);
|
||||||
INFO(i);
|
INFO(i);
|
||||||
REQUIRE(result == WaitResult::kSuccess);
|
REQUIRE(result == WaitResult::kSuccess);
|
||||||
}
|
}
|
||||||
MaybeYield();
|
MaybeYield();
|
||||||
Sleep(10ms); // Skip a few events
|
Sleep(10ms); // Skip a few events
|
||||||
for (int i = 0; i < 10; ++i) {
|
for (int i = 0; i < 10; ++i) {
|
||||||
result = Wait(timer.get(), false, 20ms);
|
result = Wait(timer.get(), false, 100ms);
|
||||||
REQUIRE(result == WaitResult::kSuccess);
|
REQUIRE(result == WaitResult::kSuccess);
|
||||||
}
|
}
|
||||||
// Cancel it
|
// Cancel it
|
||||||
|
|||||||
@@ -1223,7 +1223,8 @@ class TestCommand(BaseBuildCommand):
|
|||||||
# The test executables that will be built and run.
|
# The test executables that will be built and run.
|
||||||
test_targets = args["target"] or [
|
test_targets = args["target"] or [
|
||||||
"xenia-base-tests",
|
"xenia-base-tests",
|
||||||
"xenia-cpu-ppc-tests"
|
"xenia-cpu-tests",
|
||||||
|
"xenia-kernel-tests",
|
||||||
]
|
]
|
||||||
args["target"] = test_targets
|
args["target"] = test_targets
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user