[libchamplain/libchamplain-0-4] ChamplainBiew->remove_layer() is tested only if 0.4.1 is available
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-4] ChamplainBiew->remove_layer() is tested only if 0.4.1 is available
- Date: Sat, 17 Oct 2009 18:17:44 +0000 (UTC)
commit 990be804ea620616eb4d91862e2ee47e43c342a0
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date: Sat Oct 17 19:55:59 2009 +0200
ChamplainBiew->remove_layer() is tested only if 0.4.1 is available
bindings/perl/Champlain/t/ChamplainView.t | 7 +++++--
1 files 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]