[perl-Gtk3] Use Glib::Object::Introspection->CHECK_VERSION in the tests



commit af7310ef1ea14a6b2c96ee7582f84b30b89c9de3
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date:   Sat Nov 29 18:49:00 2014 +0100

    Use Glib::Object::Introspection->CHECK_VERSION in the tests
    
    Instead of executing pkg-config.

 t/inc/setup.pl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/t/inc/setup.pl b/t/inc/setup.pl
index 2927363..a40bdfc 100644
--- a/t/inc/setup.pl
+++ b/t/inc/setup.pl
@@ -7,7 +7,8 @@ if (!Gtk3::init_check ()) {
 
 sub check_gi_version {
   my ($x, $y, $z) = @_;
-  return !system ('pkg-config', "--atleast-version=$x.$y.$z", 'gobject-introspection-1.0');
+  #return !system ('pkg-config', "--atleast-version=$x.$y.$z", 'gobject-introspection-1.0');
+  return Glib::Object::Introspection->CHECK_VERSION ($x, $y, $z);
 }
 
 sub on_unthreaded_freebsd {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]