Skip to content

Commit

Permalink
Fix rustpkg tests now that they're in a different location
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed May 14, 2013
1 parent 8b87fd7 commit 2ab1da5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustpkg/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ fn is_rwx(p: &Path) -> bool {

fn test_sysroot() -> Path {
// Totally gross hack but it's just for test cases.
// Infer the sysroot from the exe name and tack "stage2"
// onto it. (Did I mention it was a gross hack?)
// Infer the sysroot from the exe name and pray that it's right.
// (Did I mention it was a gross hack?)
let self_path = os::self_exe_path().expect("Couldn't get self_exe path");
self_path.pop().push("stage2")
self_path.pop()
}

#[test]
Expand Down

1 comment on commit 2ab1da5

@bstrie
Copy link

@bstrie bstrie commented on 2ab1da5 May 14, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.