]> err.no Git - libchamplain/commitdiff
ChamplainBiew->remove_layer() is tested only if 0.4.1 is available
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sat, 17 Oct 2009 17:55:59 +0000 (19:55 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sat, 17 Oct 2009 18:14:23 +0000 (14:14 -0400)
bindings/perl/Champlain/t/ChamplainView.t

index bcb63c83b2eb33ef388735f9ee32d957fa6dcd2f..1d1774802a5b165e7576085fb35b07ef50a9b762 100644 (file)
@@ -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();