]> git.lizzy.rs Git - rust.git/commitdiff
this fixes the test failures on freebsd
authorDave Huseby <dhuseby@mozilla.com>
Wed, 8 Jul 2015 17:31:27 +0000 (10:31 -0700)
committerDave Huseby <dhuseby@mozilla.com>
Wed, 8 Jul 2015 17:32:43 +0000 (10:32 -0700)
src/compiletest/runtest.rs
src/test/run-make/execution-engine/Makefile

index 39d99af8d6a8012ddaf0101e712766b2167d917b..93054f39790858882e47d0cdab6f9851bc51eb2e 100644 (file)
@@ -1702,8 +1702,11 @@ fn run_codegen_test(config: &Config, props: &TestProps, testfile: &Path) {
 }
 
 fn charset() -> &'static str {
-    if cfg!(any(target_os = "bitrig", target_os = "freebsd")) {
+    // FreeBSD 10.1 defaults to GDB 6.1.1 which doesn't support "auto" charset
+    if cfg!(target_os = "bitrig") {
         "auto"
+    } else if cfg!(target_os = "freebsd") {
+        "ISO-8859-1"
     } else {
         "UTF-8"
     }
index 387905f45d84a343b5187c88f8760484e84d0ee0..ef646c5bf5d68bb1b3fe9437dda0a58740deff50 100644 (file)
@@ -1,8 +1,14 @@
 -include ../tools.mk
 
+# FIXME: ignore freebsd
 # This is a basic test of LLVM ExecutionEngine functionality using compiled
 # Rust code built using the `rustc` crate.
 
+ifneq ($(shell uname),FreeBSD)
 all:
        $(RUSTC) test.rs
        $(call RUN,test $(RUSTC))
+else
+all:
+
+endif