From 7a19eaf6d3bed2304985066231cb93d89ed73362 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 6 Nov 2013 08:56:09 -0800 Subject: [PATCH] Ignore instead of not compiling tests --- test.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test.rs b/test.rs index af0d063f..2ca94fbb 100644 --- a/test.rs +++ b/test.rs @@ -6,7 +6,6 @@ use extra::comm::DuplexStream; use extra::future::Future; use extra::time; use extra::time::Timespec; -#[cfg(not(travis))] use extra::json; use extra::uuid::Uuid; use std::f32; @@ -311,7 +310,7 @@ fn test_bytea_params() { } #[test] -#[cfg(not(travis))] +#[ignore(cfg(travis))] fn test_json_params() { test_type("JSON", [(Some(json::from_str("[10, 11, 12]").unwrap()), "'[10, 11, 12]'"), @@ -381,13 +380,13 @@ macro_rules! test_range( ) #[test] -#[cfg(not(travis))] +#[ignore(cfg(travis))] fn test_int4range_params() { test_range!("INT4RANGE", i32, 100i32, "100", 200i32, "200") } #[test] -#[cfg(not(travis))] +#[ignore(cfg(travis))] fn test_int8range_params() { test_range!("INT8RANGE", i64, 100i64, "100", 200i64, "200") } @@ -402,13 +401,13 @@ fn test_timespec_range_params(sql_type: &str) { } #[test] -#[cfg(not(travis))] +#[ignore(cfg(travis))] fn test_tsrange_params() { test_timespec_range_params("TSRANGE"); } #[test] -#[cfg(not(travis))] +#[ignore(cfg(travis))] fn test_tstzrange_params() { test_timespec_range_params("TSTZRANGE"); }