[perl-ExtUtils-PkgConfig] Added SKIP block for bug in OpenBSD's pkg-config
- From: Brian Manning <bmanning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-ExtUtils-PkgConfig] Added SKIP block for bug in OpenBSD's pkg-config
- Date: Mon, 7 Jan 2013 23:19:29 +0000 (UTC)
commit b4c245a1d71444d5aeb4c7b3ff137d158cafa01f
Author: Brian Manning <bmanning src gnome org>
Date: Tue Dec 18 02:23:07 2012 -0800
Added SKIP block for bug in OpenBSD's pkg-config
- OpenBSD replaced pkg-config with a Perl script; the Perl script in
OpenBSD 5.2 and earlier does not honor the --max-version pkg-config
flag; SKIP tests that work with --max-version on OpenBSD and with
pkg-config version 0.26 or earlier
t/3.t | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/t/3.t b/t/3.t
index 501fae6..6b06013 100644
--- a/t/3.t
+++ b/t/3.t
@@ -4,11 +4,13 @@
use strict;
use warnings;
+use English; # uses $OSNAME below
use Test::More tests => 6;
use ExtUtils::PkgConfig;
$ENV{PKG_CONFIG_PATH} = './t/';
+my ($major, $minor) = split /\./, `pkg-config --version`;
ok( ExtUtils::PkgConfig->atleast_version(qw/test_glib-2.0/, '2.2.0') );
ok( not ExtUtils::PkgConfig->atleast_version(qw/test_glib-2.0/, '2.3.0') );
@@ -16,5 +18,9 @@ ok( not ExtUtils::PkgConfig->atleast_version(qw/test_glib-2.0/, '2.3.0') );
ok( ExtUtils::PkgConfig->exact_version(qw/test_glib-2.0/, '2.2.3') );
ok( not ExtUtils::PkgConfig->exact_version(qw/test_glib-2.0/, '2.3.0') );
-ok( ExtUtils::PkgConfig->max_version(qw/test_glib-2.0/, '2.3.0') );
-ok( not ExtUtils::PkgConfig->max_version(qw/test_glib-2.0/, '2.1.0') );
+SKIP: {
+ skip("OpenBSD bug in pkg-config clone", 2)
+ if($OSNAME eq "openbsd" && ($major == 0 && $minor <= 26));
+ ok( ExtUtils::PkgConfig->max_version(qw/test_glib-2.0/, '2.3.0') );
+ ok( not ExtUtils::PkgConfig->max_version(qw/test_glib-2.0/, '2.1.0') );
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]