Find failure.html relative to exe path, not cwd

This commit is contained in:
Keegan McAllister 2014-02-12 17:08:45 -08:00
parent 4b0f6c3e5c
commit 2a1c450cdf

View file

@ -63,7 +63,7 @@ pub fn parse_url(str_url: &str, base_url: Option<Url>) -> Url {
fail!("about:crash");
}
"failure" => {
let mut path = os::getcwd();
let mut path = os::self_exe_path().expect("can't get exe path");
path.push("../src/test/html/failure.html");
// FIXME (#1094): not the right way to transform a path
~"file://" + path.display().to_str()