mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 08:42:17 -04:00
Fix paths in test_ini tests
This commit is contained in:
parent
8b103c0c77
commit
1b1dc7a48b
2 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/perl
|
||||
use Test::More;
|
||||
if (! -e "./test_ini") {
|
||||
if (! -e "./test_ini1") {
|
||||
plan skip_all => "./test_ini not compiled - please install tap library and/or enable parse-ini to test";
|
||||
}
|
||||
exec "./test_ini";
|
||||
exec "./test_ini1";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ use Test::More;
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
if (! -e "./test_ini") {
|
||||
if (! -e "./test_ini3") {
|
||||
plan skip_all => "./test_ini not compiled - please install tap library and/or enable parse-ini to test";
|
||||
}
|
||||
|
||||
|
|
@ -28,7 +28,7 @@ foreach my $args (@TESTS) {
|
|||
} else {
|
||||
delete($ENV{"NAGIOS_CONFIG_PATH"});
|
||||
}
|
||||
system {'./test_ini2'} @$args;
|
||||
system {'./test_ini3'} @$args;
|
||||
cmp_ok($?>>8, '==', $rc, "Parse-ini die " . $count++);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue