about summary refs log tree commit diff
path: root/src/librustpkg
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-06-13 22:46:45 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-06-13 22:53:30 -0700
commit9c3b1cbc19b31537ef1a0a904806ad46c9923f75 (patch)
tree4a39af91db0680013be7d8e4693a89685748bdc7 /src/librustpkg
parentdc18321ef589711ee0a0e5adc5b7ed412641e73e (diff)
downloadrust-9c3b1cbc19b31537ef1a0a904806ad46c9923f75.tar.gz
rust-9c3b1cbc19b31537ef1a0a904806ad46c9923f75.zip
Resolve LLVM crashing in rustpkg tests
Diffstat (limited to 'src/librustpkg')
-rw-r--r--src/librustpkg/tests.rs16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/librustpkg/tests.rs b/src/librustpkg/tests.rs
index b8cce8055d3..3b68fc030f5 100644
--- a/src/librustpkg/tests.rs
+++ b/src/librustpkg/tests.rs
@@ -114,6 +114,17 @@ fn test_sysroot() -> Path {
 }
 
 #[test]
+fn test_all() {
+    // FIXME(#7071): these tests use rustc, so they can't be run in parallel
+    //               until this issue is resolved
+    test_make_dir_rwx();
+    test_install_valid();
+    test_install_invalid();
+    test_install_url();
+    test_package_ids_must_be_relative_path_like();
+    test_package_version();
+}
+
 fn test_make_dir_rwx() {
     let temp = &os::tmpdir();
     let dir = temp.push("quux");
@@ -126,7 +137,6 @@ fn test_make_dir_rwx() {
     assert!(os::remove_dir_recursive(&dir));
 }
 
-#[test]
 fn test_install_valid() {
     use path_util::installed_library_in_workspace;
 
@@ -155,7 +165,6 @@ fn test_install_valid() {
     assert!(!os::path_exists(&bench));
 }
 
-#[test]
 fn test_install_invalid() {
     use conditions::nonexistent_package::cond;
     use cond1 = conditions::missing_pkg_files::cond;
@@ -178,7 +187,6 @@ fn test_install_invalid() {
     assert!(error_occurred && error1_occurred);
 }
 
-#[test]
 fn test_install_url() {
     let workspace = mkdtemp(&os::tmpdir(), "test").expect("couldn't create temp dir");
     let sysroot = test_sysroot();
@@ -214,7 +222,6 @@ fn test_install_url() {
     assert!(!os::path_exists(&bench));
 }
 
-#[test]
 fn test_package_ids_must_be_relative_path_like() {
     use conditions::bad_pkg_id::cond;
 
@@ -255,7 +262,6 @@ fn test_package_ids_must_be_relative_path_like() {
 
 }
 
-#[test]
 fn test_package_version() {
     let temp_pkg_id = PkgId::new("github.com/catamorphism/test_pkg_version");
     match temp_pkg_id.version {