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>
(cherry picked from commit c6484a3f83)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Lucas Gass 2025-10-04 17:14:52 +00:00 committed by Paul Derscheid
parent 01e49d3f1f
commit d45be6eca8
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
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);