Fix paths in test_ini tests

This commit is contained in:
Thomas Guyot-Sionnest 2009-01-24 00:41:00 -05:00
parent 8b103c0c77
commit 1b1dc7a48b
2 changed files with 4 additions and 4 deletions

View file

@ -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";

View file

@ -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++);
}