Skip to content

Commit 3821052

Browse files
committed
[libc] Temporarily disable SCHED_FIFO and SCHED_RR tests
These tests fail on Arch Linux, where setting these scheduling policies succeeds even when not running as root.
1 parent 2d9b6a0 commit 3821052

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

libc/test/src/sched/param_and_scheduler_test.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,11 @@ class SchedTest : public LIBC_NAMESPACE::testing::Test {
145145
using LlvmLibcSchedTest = SchedTest; \
146146
TEST_F(LlvmLibcSchedTest, Sched_##policy) { testSched(policy, can_set); }
147147

148-
// Root is required to set these policies.
149-
LIST_SCHED_TESTS(SCHED_FIFO, LIBC_NAMESPACE::getuid() == 0)
150-
LIST_SCHED_TESTS(SCHED_RR, LIBC_NAMESPACE::getuid() == 0)
148+
// Temporarily disabled as these tests are failing on Arch Linux where
149+
// scheduling policy setting succeeds without running as root.
150+
// // Root is required to set these policies.
151+
// LIST_SCHED_TESTS(SCHED_FIFO, LIBC_NAMESPACE::getuid() == 0)
152+
// LIST_SCHED_TESTS(SCHED_RR, LIBC_NAMESPACE::getuid() == 0)
151153

152154
// No root is required to set these policies.
153155
LIST_SCHED_TESTS(SCHED_OTHER, true)

0 commit comments

Comments
 (0)