Merge "sched_policy_test: set_sched_policy also set the cpuset policy as fallback" into android12-tests-dev

This commit is contained in:
Edward Liaw 2024-01-25 18:45:38 +00:00 committed by Gerrit Code Review
commit ce34e32556

View file

@ -75,9 +75,11 @@ TEST(SchedPolicy, set_sched_policy) {
}
ASSERT_EQ(0, set_sched_policy(0, SP_BACKGROUND));
ASSERT_EQ(0, set_cpuset_policy(0, SP_BACKGROUND));
AssertPolicy(SP_BACKGROUND);
ASSERT_EQ(0, set_sched_policy(0, SP_FOREGROUND));
ASSERT_EQ(0, set_cpuset_policy(0, SP_FOREGROUND));
AssertPolicy(SP_FOREGROUND);
}