From: Emmanuel Rodriguez Date: Sat, 17 Oct 2009 17:55:59 +0000 (+0200) Subject: ChamplainBiew->remove_layer() is tested only if 0.4.1 is available X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=990be804ea620616eb4d91862e2ee47e43c342a0;p=libchamplain ChamplainBiew->remove_layer() is tested only if 0.4.1 is available --- diff --git a/bindings/perl/Champlain/t/ChamplainView.t b/bindings/perl/Champlain/t/ChamplainView.t index bcb63c8..1d17748 100644 --- a/bindings/perl/Champlain/t/ChamplainView.t +++ b/bindings/perl/Champlain/t/ChamplainView.t @@ -62,8 +62,11 @@ sub test_generic { # Can't be tested but at least we check that it doesn't crash when invoked my $layer = Champlain::Layer->new(); $view->add_layer($layer); - $view->remove_layer($layer); - + + SKIP: { + Champlain->CHECK_VERSION(0, 4, 1) or skip '0.4.1 stuff', 0; + $view->remove_layer($layer); + } # Change the map source (get a different map source) my $factory = Champlain::MapSourceFactory->dup_default();