public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jitka Plesnikova <jplesnik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/perl-DBI] f43: Fix test for 32bit-perl
Date: Mon, 17 Aug 2026 22:05:32 GMT	[thread overview]
Message-ID: <178700433203.1.8688147961190238851.rpms-perl-DBI-75ded142b1d6@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-DBI
Branch : f43
Commit : 75ded142b1d6351c7dcd7792c92f0a94124b05ba
Author : Jitka Plesnikova <jplesnik@redhat.com>
Date   : 2026-08-18T00:05:23+02:00
Stats  : +27/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-DBI/c/75ded142b1d6351c7dcd7792c92f0a94124b05ba?branch=f43

Log:
Fix test for 32bit-perl

---
diff --git a/DBI-1.652-Fix-test-for-32bit-perl-report-in-PR-189.patch b/DBI-1.652-Fix-test-for-32bit-perl-report-in-PR-189.patch
new file mode 100644
index 0000000..74fcd74
--- /dev/null
+++ b/DBI-1.652-Fix-test-for-32bit-perl-report-in-PR-189.patch
@@ -0,0 +1,25 @@
+From acc903db3086a737936643a5dbbc0e22f9d5c421 Mon Sep 17 00:00:00 2001
+From: "H.Merijn Brand - Tux" <linux@tux.freedom.nl>
+Date: Mon, 17 Aug 2026 09:49:56 +0200
+Subject: [PATCH] Fix test for 32bit-perl (report in PR#189)
+
+---
+ t/60preparse.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/60preparse.t b/t/60preparse.t
+index 92bdc89..eff39be 100755
+--- a/t/60preparse.t
++++ b/t/60preparse.t
+@@ -148,7 +148,7 @@ ok( $DBI::err );
+ is( $DBI::errstr, "preparse found :p100000 which is outside the allowed range.");
+ is( pp($dbh, 'a = :2147483648', DBIpp_ph_qm, DBIpp_ph_cs|DBIpp_ph_cn), undef, 'exceeds limit');
+ ok( $DBI::err );
+-is( $DBI::errstr, "preparse found :p-2147483648 which is outside the allowed range.");
++like( $DBI::errstr, qr{^preparse found :p(?:-2147483648|2147483647) which is outside the allowed range.$});
+ is( pp($dbh, 'a = :12345678987654321', DBIpp_ph_qm, DBIpp_ph_cs|DBIpp_ph_cn), undef, 'exceeds limit');
+ ok( $DBI::err );
+ like( $DBI::errstr, qr{^preparse found :p\d+ which is outside the allowed range.$});
+-- 
+2.55.0
+

diff --git a/perl-DBI.spec b/perl-DBI.spec
index c674760..ca4f26d 100644
--- a/perl-DBI.spec
+++ b/perl-DBI.spec
@@ -36,6 +36,8 @@ Summary:        A database access API for perl
 License:        GPL-1.0-or-later OR Artistic-1.0-Perl
 URL:            http://dbi.perl.org/
 Source0:        https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/DBI-%{version}.tgz
+Patch0:         DBI-1.652-Fix-test-for-32bit-perl-report-in-PR-189.patch
+
 BuildRequires:  coreutils
 BuildRequires:  findutils
 BuildRequires:  gcc

                 reply	other threads:[~2026-08-17 22:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178700433203.1.8688147961190238851.rpms-perl-DBI-75ded142b1d6@fedoraproject.org \
    --to=jplesnik@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox