Skip to content

Commit 51b339e

Browse files
committed
---
yaml --- r: 77043 b: refs/heads/snap-stage3 c: 996989c h: refs/heads/master i: 77041: 1d21658 77039: c839d30 v: v3
1 parent 201d9ef commit 51b339e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: f1132496dddbdd88f321a7919eec3d65136b3f75
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ef8a5044ff26c8aab077a421b91231ce132e3ff5
4+
refs/heads/snap-stage3: 996989cdb4c936ee3e41e65e6cd4d22c073206f9
55
refs/heads/try: ebfe63cd1c0b5d23f7ea60c69b4fde2e30cfd42a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustpkg/tests.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,18 @@ fn test_extern_mod() {
10341034
assert!(os::path_exists(&exec_file) && is_executable(&exec_file));
10351035
}
10361036

1037+
#[test]
1038+
fn test_import_rustpkg() {
1039+
let p_id = PkgId::new("foo");
1040+
let workspace = create_local_package(&p_id);
1041+
writeFile(&workspace.push("src").push("foo-0.1").push("pkg.rs"),
1042+
"extern mod rustpkg; fn main() {}");
1043+
command_line_test([~"build", ~"foo"], &workspace);
1044+
debug!("workspace = %s", workspace.to_str());
1045+
assert!(os::path_exists(&workspace.push("build").push("foo").push(fmt!("pkg%s",
1046+
os::EXE_SUFFIX))));
1047+
}
1048+
10371049
/// Returns true if p exists and is executable
10381050
fn is_executable(p: &Path) -> bool {
10391051
use std::libc::consts::os::posix88::{S_IXUSR};

0 commit comments

Comments
 (0)