From b6abccc2bf7a02fc74bbed6e085a6391a45ca52e Mon Sep 17 00:00:00 2001 From: "Brian J. Burg" Date: Wed, 3 Oct 2012 14:33:07 -0700 Subject: [PATCH] Comment out the text run test that causes ICE at compile time. Workaround for Rust Issue #3592 --- src/servo/text/text_run.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/servo/text/text_run.rs b/src/servo/text/text_run.rs index 45d56a2ceaa..bdbba729864 100644 --- a/src/servo/text/text_run.rs +++ b/src/servo/text/text_run.rs @@ -233,16 +233,19 @@ fn test_split2() { assert break_runs.second().text == ~"yum yum yum yum yum"; } +/* Causes ICE during compilation. See Rust Issue #3592 */ +/* #[test] fn test_split3() { let flib = FontCache(); let font = flib.get_test_font(); let run = TextRun(font, ~"firecracker firecracker"); - let break_runs = run.split(font, run.min_break_width() + au::from_px(10)); + let px = au::from_px(10); + let break_runs = run.split(font, run.min_break_width() + px); assert break_runs.first().text == ~"firecracker"; assert break_runs.second().text == ~"firecracker"; -} +}*/ #[test] #[ignore(cfg(target_os = "macos"))]