Skip to content

Commit 09c00ed

Browse files
berkowskiSusurrus
authored andcommitted
Removed tests on ARM for non-existant constants.
1 parent d623db9 commit 09c00ed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/sys/socket/consts.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,15 @@ mod test {
434434
TCP_CORK,
435435
// SO_BUSY_POLL,
436436
// SO_RXQ_OVFL,
437+
#[cfg(not(target_arch="arm"))]
437438
SO_PASSCRED,
438439
SO_PRIORITY,
439440
// SO_PROTOCOL,
440441
SO_RCVBUFFORCE,
441442
// SO_PEEK_OFF,
443+
#[cfg(not(target_arch="arm"))]
442444
SO_PEERCRED,
445+
#[cfg(not(target_arch="arm"))]
443446
SO_SNDBUFFORCE,
444447
MSG_ERRQUEUE);
445448
}

src/sys/socket/sockopt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ impl<'a> Set<'a, usize> for SetUsize {
378378

379379
#[cfg(test)]
380380
mod test {
381-
#[cfg(target_os = "linux")]
381+
#[cfg(all(target_os = "linux", not(target_arch = "arm")))]
382382
#[test]
383383
fn can_get_peercred_on_unix_socket() {
384384
use super::super::*;

0 commit comments

Comments
 (0)