Skip to content

Commit 546ce79

Browse files
committed
Rollup merge of #26893 - dhuseby:fixing_freebsd_tests, r=alexcrichton
2 parents 6bc1264 + b77985f commit 546ce79

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/compiletest/runtest.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,8 +1702,11 @@ fn run_codegen_test(config: &Config, props: &TestProps, testfile: &Path) {
17021702
}
17031703

17041704
fn charset() -> &'static str {
1705-
if cfg!(any(target_os = "bitrig", target_os = "freebsd")) {
1705+
// FreeBSD 10.1 defaults to GDB 6.1.1 which doesn't support "auto" charset
1706+
if cfg!(target_os = "bitrig") {
17061707
"auto"
1708+
} else if cfg!(target_os = "freebsd") {
1709+
"ISO-8859-1"
17071710
} else {
17081711
"UTF-8"
17091712
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
-include ../tools.mk
22

3+
# FIXME: ignore freebsd
34
# This is a basic test of LLVM ExecutionEngine functionality using compiled
45
# Rust code built using the `rustc` crate.
56

7+
ifneq ($(shell uname),FreeBSD)
68
all:
79
$(RUSTC) test.rs
810
$(call RUN,test $(RUSTC))
11+
else
12+
all:
13+
14+
endif

0 commit comments

Comments
 (0)