Skip to content

Commit 6991bfa

Browse files
committed
Don't test J1939 on musl.
Kernel headers too old. Signed-off-by: Andrew Balmos <andrew@balmos.org>
1 parent 99045cd commit 6991bfa

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

libc-test/build.rs

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2917,7 +2917,8 @@ fn test_linux(target: &str) {
29172917
"asm/mman.h",
29182918
"linux/can.h",
29192919
"linux/can/raw.h",
2920-
"linux/can/j1939.h",
2920+
// FIXME: requires kernel headers >= 5.4.1.
2921+
[!musl]: "linux/can/j1939.h",
29212922
"linux/dccp.h",
29222923
"linux/errqueue.h",
29232924
"linux/falloc.h",
@@ -3104,6 +3105,12 @@ fn test_linux(target: &str) {
31043105
// Might differ between kernel versions
31053106
"open_how" => true,
31063107

3108+
// FIXME: requires >= 5.4.1 kernel headers
3109+
"j1939_filter" if musl => true,
3110+
"pgn_t" if musl => true,
3111+
"priority_t" if musl => true,
3112+
"name_t" if musl => true,
3113+
31073114
_ => false,
31083115
}
31093116
});
@@ -3234,6 +3241,42 @@ fn test_linux(target: &str) {
32343241
| "CAN_RAW_FILTER_MAX"
32353242
| "CAN_NPROTO" => true,
32363243

3244+
// FIXME: Requires >= 5.4.1 kernel headers
3245+
| "J1939_FILTER_MAX"
3246+
| "J1939_MAX_UNICAST_ADDR"
3247+
| "J1939_IDLE_ADDR"
3248+
| "J1939_NO_ADDR"
3249+
| "J1939_NO_NAME"
3250+
| "J1939_PGN_REQUEST"
3251+
| "J1939_PGN_ADDRESS_CLAIMED"
3252+
| "J1939_PGN_ADDRESS_COMMANDED"
3253+
| "J1939_PGN_PDU1_MAX"
3254+
| "J1939_PGN_MAX"
3255+
| "J1939_NO_PGN"
3256+
| "SOL_CAN_J1939"
3257+
| "SO_J1939_FILTER"
3258+
| "SO_J1939_PROMISC"
3259+
| "SO_J1939_SEND_PRIO"
3260+
| "SO_J1939_ERRQUEUE"
3261+
| "SCM_J1939_DEST_ADDR"
3262+
| "SCM_J1939_DEST_NAME"
3263+
| "SCM_J1939_PRIO"
3264+
| "SCM_J1939_ERRQUEUE"
3265+
| "J1939_NLA_PAD"
3266+
| "J1939_NLA_BYTES_ACKED"
3267+
| "J1939_NLA_TOTAL_SIZE"
3268+
| "J1939_NLA_PGN"
3269+
| "J1939_NLA_SRC_NAME"
3270+
| "J1939_NLA_DEST_NAME"
3271+
| "J1939_NLA_SRC_ADDR"
3272+
| "J1939_NLA_DEST_ADDR"
3273+
| "J1939_EE_INFO_NONE"
3274+
| "J1939_EE_INFO_TX_ABORT"
3275+
| "J1939_EE_INFO_RX_RTS"
3276+
| "J1939_EE_INFO_RX_DPO"
3277+
| "J1939_EE_INFO_RX_ABORT"
3278+
if musl => true,
3279+
32373280
// FIXME: Requires recent kernel headers (5.15)
32383281
| "J1939_NLA_TOTAL_SIZE"
32393282
| "J1939_NLA_PGN"

0 commit comments

Comments
 (0)