Skip to content

Commit d2368e5

Browse files
Ignore sched_attr type for linux test
1 parent 5522106 commit d2368e5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

libc-test/build.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3705,6 +3705,12 @@ fn test_linux(target: &str) {
37053705
// https://github.com/torvalds/linux/commit/c05cd3645814724bdeb32a2b4d953b12bdea5f8c
37063706
"xdp_umem_reg_v1" => true,
37073707

3708+
// Is defined in `<linux/sched/types.h>` but if this file is included at the same time
3709+
// as `<sched.h>`, the `struct sched_param` is defined twice, causing the compilation to
3710+
// fail. The problem doesn't seem to be present in more recent versions of the linux
3711+
// kernel so we can drop this and test the type once this new version is used in CI.
3712+
"sched_attr" => true,
3713+
37083714
_ => false,
37093715
}
37103716
});
@@ -4123,6 +4129,14 @@ fn test_linux(target: &str) {
41234129
| "PF_MCE_EARLY"
41244130
| "PF_MEMALLOC_PIN" => true,
41254131

4132+
"SCHED_FLAG_KEEP_POLICY"
4133+
| "SCHED_FLAG_KEEP_PARAMS"
4134+
| "SCHED_FLAG_UTIL_CLAMP_MIN"
4135+
| "SCHED_FLAG_UTIL_CLAMP_MAX"
4136+
| "SCHED_FLAG_KEEP_ALL"
4137+
| "SCHED_FLAG_UTIL_CLAMP"
4138+
| "SCHED_FLAG_ALL" if musl => true, // Needs more recent linux headers.
4139+
41264140
_ => false,
41274141
}
41284142
});

0 commit comments

Comments
 (0)