Skip to content

Commit cb2a8ae

Browse files
committed
(try to) Fix tests
1 parent 613fae7 commit cb2a8ae

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

libc-test/build.rs

+7
Original file line numberDiff line numberDiff line change
@@ -4394,6 +4394,13 @@ fn test_linux(target: &str) {
43944394
| "CANXL_XLF"
43954395
=> true,
43964396

4397+
"STATX_MNT_ID_UNIQUE" // Added in Linux 6.8
4398+
| "STATX_SUBVOL" // Added in Linux 6.10
4399+
| "STATX_WRITE_ATOMIC" // Added in Linux 6.11
4400+
| "STATX_ATTR_WRITE_ATOMIC" // Added in Linux 6.11
4401+
| "STATX_DIO_READ_ALIGN" // Added in Linux 6.14
4402+
=> true,
4403+
43974404
// FIXME(linux): Parts of netfilter/nfnetlink*.h require more recent kernel headers:
43984405
| "RTNLGRP_MCTP_IFADDR" // linux v5.17+
43994406
| "RTNLGRP_TUNNEL" // linux v5.18+

libc-test/semver/linux-gnu.txt

+1
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ STATX_BLOCKS
424424
STATX_BTIME
425425
STATX_CTIME
426426
STATX_DIOALIGN
427+
STATX_DIO_READ_ALIGN
427428
STATX_GID
428429
STATX_INO
429430
STATX_MNT_ID

src/unix/linux_like/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1625,8 +1625,7 @@ cfg_if! {
16251625
pub const STATX_MNT_ID_UNIQUE: c_uint = 0x4000;
16261626
pub const STATX_SUBVOL: c_uint = 0x8000;
16271627
pub const STATX_WRITE_ATOMIC: c_uint = 0x_0001_0000;
1628-
// libc-test failure. Linux 6.14 to new?
1629-
// pub const STATX_DIO_READ_ALIGN: c_uint = 0x_0002_0000;
1628+
pub const STATX_DIO_READ_ALIGN: c_uint = 0x_0002_0000;
16301629
pub const STATX__RESERVED: c_int = 0x80000000;
16311630
pub const STATX_ATTR_COMPRESSED: c_int = 0x0004;
16321631
pub const STATX_ATTR_IMMUTABLE: c_int = 0x0010;

0 commit comments

Comments
 (0)