aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-02-12 17:08:45 -0800
committerKeegan McAllister <kmcallister@mozilla.com>2014-02-12 18:07:32 -0800
commit2a1c450cdf6368b556392055327af241464faef0 (patch)
treef8136cbe8d4f4f15f2aef94fb5c8ef4e0935f2c4 /src
parent4b0f6c3e5cf6c598f7434c7f58b305365e4508f8 (diff)
downloadservo-2a1c450cdf6368b556392055327af241464faef0.tar.gz
servo-2a1c450cdf6368b556392055327af241464faef0.zip
Find failure.html relative to exe path, not cwd
Diffstat (limited to 'src')
-rw-r--r--src/components/util/url.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/util/url.rs b/src/components/util/url.rs
index 6dd78e25cdd..6ef650a64cd 100644
--- a/src/components/util/url.rs
+++ b/src/components/util/url.rs
@@ -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()