diff options
| -rw-r--r-- | src/librustpkg/path_util.rs | 4 | ||||
| -rw-r--r-- | src/librustpkg/util.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustpkg/path_util.rs b/src/librustpkg/path_util.rs index c77106a9a39..c821281184d 100644 --- a/src/librustpkg/path_util.rs +++ b/src/librustpkg/path_util.rs @@ -75,9 +75,9 @@ mod test { let substitute_path = Path("xyzzy"); assert!(default_dest_dir(&the_path) == the_path.push(~"build")); let nonexistent_path = mk_nonexistent(&the_path, "quux"); - let bogus = do ::conditions::bad_path::cond.trap(|_| { + let bogus = do ::conditions::bad_path::cond.trap(|_| { substitute_path }).in { default_dest_dir(&nonexistent_path) }; assert!(bogus == substitute_path); } -} \ No newline at end of file +} diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs index 602c71cf8be..4c38a177e72 100644 --- a/src/librustpkg/util.rs +++ b/src/librustpkg/util.rs @@ -579,7 +579,7 @@ mod test { assert!(is_cmd(~"uninstall")); assert!(is_cmd(~"unprefer")); } - + #[test] fn test_parse_name() { assert!(parse_name(~"org.mozilla.servo").get() == ~"servo"); |
