Skip to content

Commit 4140b29

Browse files
committed
Fix some of the testcases
simple-lib and deeply and c-dependencies still have problems. But they were nt caused by this pull request
1 parent aa50ebd commit 4140b29

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/librustpkg/testsuite/pass/src/c-dependencies/pkg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn main() {
5858
[~"-c"],
5959
[~"foo.c"],
6060
"foo");
61-
let out_p = Path::new(out_path);
61+
let out_p = Path::new(out_path.unwrap());
6262
out_p.as_str().unwrap().to_owned()
6363
};
6464
out_path

src/librustpkg/testsuite/pass/src/foo/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
fn f() {}
11+
pub fn f() {}

src/librustpkg/testsuite/pass/src/hello-world/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ The test runner should check that, after `rustpkg build hello-world`:
1919
*/
2020

2121
fn main() {
22-
println(~"Hello world!");
22+
println("Hello world!");
2323
}

src/librustpkg/testsuite/pass/src/install-paths/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
#[bench]
12-
fn g() {
12+
pub fn g() {
1313
let mut x = 0;
1414
while(x < 1000) {
1515
x += 1;

0 commit comments

Comments
 (0)