From 990be804ea620616eb4d91862e2ee47e43c342a0 Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Sat, 17 Oct 2009 19:55:59 +0200 Subject: [PATCH] ChamplainBiew->remove_layer() is tested only if 0.4.1 is available --- bindings/perl/Champlain/t/ChamplainView.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(); -- 2.39.5