]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chrt: (tests) increase deadline test parameters
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 26 Jul 2023 14:32:59 +0000 (16:32 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 26 Jul 2023 14:32:59 +0000 (16:32 +0200)
Since kernel commit
b4098bfc5efb ("sched/deadline: Impose global limits on sched_attr::sched_period")
the value for dl_period has a lower bound of 100us.
Adjust the test parameters so the test can work on newer kernels.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/expected/schedutils/chrt-deadline
tests/ts/schedutils/chrt

index 33d55270680e1e9b0482cd98ad260e0feca83f4b..35066c5138b00b0a31818d416e684be7e42bbfb1 100644 (file)
@@ -1,9 +1,9 @@
 SCHED_DEADLINE
 0
-<removed>'s current runtime/deadline/period parameters: 13000/13000/13000
+<removed>'s current runtime/deadline/period parameters: 130000/130000/130000
 SCHED_DEADLINE
 0
-<removed>'s current runtime/deadline/period parameters: 12000/12000/13000
+<removed>'s current runtime/deadline/period parameters: 120000/120000/130000
 SCHED_DEADLINE
 0
-<removed>'s current runtime/deadline/period parameters: 10000/12000/13000
+<removed>'s current runtime/deadline/period parameters: 100000/120000/130000
index aca735f30f8e427727111d14351036f199041476..df8b902acdda8164257da50c7db89e30d4bb299c 100755 (executable)
@@ -93,9 +93,9 @@ fi
 ts_init_subtest "deadline"
 skip_policy SCHED_DEADLINE
 if [ $? == 0 ]; then
-       do_chrt --deadline --sched-period 13000 0
-       do_chrt --deadline --sched-period 13000 --sched-deadline 12000 0
-       do_chrt --deadline --sched-period 13000 --sched-deadline 12000 --sched-runtime 10000 0
+       do_chrt --deadline --sched-period 130000 0
+       do_chrt --deadline --sched-period 130000 --sched-deadline 120000 0
+       do_chrt --deadline --sched-period 130000 --sched-deadline 120000 --sched-runtime 100000 0
        cleanup_output
        ts_finalize_subtest
 fi