Skip to content

Commit 5431f42

Browse files
committed
Auto merge of #43634 - dhduvall:solaris-test-fixes, r=sanxiyn
Fix a number of failing tests on Solaris and SPARC
2 parents eae446c + 9144755 commit 5431f42

File tree

11 files changed

+14
-9
lines changed

11 files changed

+14
-9
lines changed

src/libstd/sys/unix/fs.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,7 @@ impl DirEntry {
284284
lstat(&self.path())
285285
}
286286

287-
#[cfg(target_os = "solaris")]
288-
pub fn file_type(&self) -> io::Result<FileType> {
289-
stat(&self.path()).map(|m| m.file_type())
290-
}
291-
292-
#[cfg(target_os = "haiku")]
287+
#[cfg(any(target_os = "solaris", target_os = "haiku"))]
293288
pub fn file_type(&self) -> io::Result<FileType> {
294289
lstat(&self.path()).map(|m| m.file_type())
295290
}

src/test/compile-fail/asm-bad-clobber.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// ignore-s390x
1515
// ignore-emscripten
1616
// ignore-powerpc
17+
// ignore-sparc
1718

1819
#![feature(asm, rustc_attrs)]
1920

src/test/compile-fail/asm-in-bad-modifier.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// ignore-s390x
1212
// ignore-emscripten
1313
// ignore-powerpc
14+
// ignore-sparc
1415

1516
#![feature(asm)]
1617

src/test/compile-fail/asm-misplaced-option.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// ignore-s390x
1515
// ignore-emscripten
1616
// ignore-powerpc
17+
// ignore-sparc
1718

1819
#![feature(asm, rustc_attrs)]
1920

src/test/compile-fail/asm-out-assign-imm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// ignore-s390x
1212
// ignore-emscripten
1313
// ignore-powerpc
14+
// ignore-sparc
1415

1516
#![feature(asm)]
1617

src/test/compile-fail/asm-out-no-modifier.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// ignore-s390x
1212
// ignore-emscripten
1313
// ignore-powerpc
14+
// ignore-sparc
1415

1516
#![feature(asm)]
1617

src/test/compile-fail/asm-out-read-uninit.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// ignore-s390x
1212
// ignore-emscripten
1313
// ignore-powerpc
14+
// ignore-sparc
1415

1516
#![feature(asm)]
1617

src/test/run-make/codegen-options-parsing/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ all:
2525

2626
# Should not link dead code...
2727
$(RUSTC) -Z print-link-args dummy.rs 2>&1 | \
28-
grep -e '--gc-sections' -e '-dead_strip' -e '/OPT:REF'
28+
grep -e '--gc-sections' -e '-z[^ ]* [^ ]*\<ignore\>' -e '-dead_strip' -e '/OPT:REF'
2929
# ... unless you specifically ask to keep it
3030
$(RUSTC) -Z print-link-args -C link-dead-code dummy.rs 2>&1 | \
31-
(! grep -e '--gc-sections' -e '-dead_strip' -e '/OPT:REF')
31+
(! grep -e '--gc-sections' -e '-z[^ ]* [^ ]*\<ignore\>' -e '-dead_strip' -e '/OPT:REF')

src/test/run-make/tools.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ifeq ($(UNAME),Bitrig)
8282
EXTRACXXFLAGS := -lc++ -lc++abi
8383
else
8484
ifeq ($(UNAME),SunOS)
85-
EXTRACFLAGS := -lm -lpthread -lposix4 -lsocket
85+
EXTRACFLAGS := -lm -lpthread -lposix4 -lsocket -lresolv
8686
else
8787
ifeq ($(UNAME),OpenBSD)
8888
EXTRACFLAGS := -lm -lpthread

src/test/run-pass/conditional-compile-arch.rs

+3
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ pub fn main() { }
3939

4040
#[cfg(target_arch = "wasm32")]
4141
pub fn main() { }
42+
43+
#[cfg(target_arch = "sparc64")]
44+
pub fn main() { }

src/test/run-pass/union/union-basic.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
// FIXME: This test case makes little-endian assumptions.
1414
// ignore-s390x
15+
// ignore-sparc
1516

1617
extern crate union;
1718
use std::mem::{size_of, align_of, zeroed};

0 commit comments

Comments
 (0)