From 25e15295942b976a8db749b95f494663189f622e Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 12 Sep 2012 17:56:55 -0700 Subject: [PATCH] Use the correct syntax to ignore tests on mac --- src/servo/text/native_font.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servo/text/native_font.rs b/src/servo/text/native_font.rs index bdd1dea1b05..6867cb88665 100644 --- a/src/servo/text/native_font.rs +++ b/src/servo/text/native_font.rs @@ -54,7 +54,7 @@ fn should_return_none_glyph_index_for_bad_codepoints() { } #[test] -#[ignore(target_os = "macos")] +#[ignore(cfg(target_os = "macos"))] fn should_get_glyph_h_advance() { with_test_native_font(|font| { let adv = font.glyph_h_advance(40u); @@ -64,7 +64,7 @@ fn should_get_glyph_h_advance() { } #[test] -#[ignore(target_os = "macos")] +#[ignore(cfg(target_os = "macos"))] fn should_return_none_glyph_h_advance_for_bad_codepoints() { with_test_native_font(|font| { let adv = font.glyph_h_advance(-1 as uint);