Bug 40292: Use Test::NoWarnings

Amended-by: Jonathan Druart
Added + 1 to the plan

Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2025-10-04 17:14:52 +00:00
parent b9d392dd61
commit c6484a3f83
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ use Modern::Perl;
use Test::More;
use File::Find;
use File::Slurp;
use Test::NoWarnings;
# Test for Bug 40292: Prevent SQL syntax error when upgrading to 25.05 on MariaDB 10.3
# This test ensures that database revision files don't use SQL syntax that is incompatible
@ -48,7 +49,7 @@ if ( !@db_rev_files ) {
plan skip_all => "No database revision files found in $db_revs_dir";
}
plan tests => scalar @db_rev_files;
plan tests => scalar @db_rev_files + 1;
foreach my $file (@db_rev_files) {
my $content = read_file($file);