[libc-commits] [PATCH] D156700: [libc] Fix sched_getscheduler return value
Mikhail Ramalho via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue Aug 1 08:59:27 PDT 2023
mikhail.ramalho updated this revision to Diff 546087.
mikhail.ramalho added a comment.
- Changed test case to should sched policy on failure, it should look like:
[ RUN ] LlvmLibcSchedTest.Sched_SCHED_FIFO
/home/mgadelha/tools/llvm-project/libc/test/src/sched/param_and_scheduler_test.cpp:135: FAILURE
Expected: __llvm_libc::sched_setscheduler(0, policy, nullptr)
Which is: -1
To be equal to: 0
Which is: 0
[ FAILED ] LlvmLibcSchedTest.Sched_SCHED_FIFO
In this case, SCHED_FIFO was policy used.
- Rebased
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156700/new/
https://reviews.llvm.org/D156700
Files:
libc/src/sched/linux/sched_getscheduler.cpp
libc/src/sched/linux/sched_setscheduler.cpp
libc/test/src/sched/param_and_scheduler_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156700.546087.patch
Type: text/x-patch
Size: 14860 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230801/7c248a2f/attachment-0001.bin>
More information about the libc-commits
mailing list