diff options
| author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-24 00:41:00 -0500 |
|---|---|---|
| committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-24 00:41:00 -0500 |
| commit | 1b1dc7a48b7072aa9ba3a6c93e76d07f7c12d31f (patch) | |
| tree | a91f801c62047c5c427c0e2c9a46e6c8f0181f6e /lib/tests | |
| parent | 8b103c0c778aa22dbe7688e7d11df20b7c80be70 (diff) | |
| download | monitoring-plugins-1b1dc7a48b7072aa9ba3a6c93e76d07f7c12d31f.tar.gz | |
Fix paths in test_ini tests
Diffstat (limited to 'lib/tests')
| -rwxr-xr-x | lib/tests/test_ini1.t | 4 | ||||
| -rwxr-xr-x | lib/tests/test_ini3.t | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/tests/test_ini1.t b/lib/tests/test_ini1.t index 0487098c..d4810116 100755 --- a/lib/tests/test_ini1.t +++ b/lib/tests/test_ini1.t | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #!/usr/bin/perl | 1 | #!/usr/bin/perl |
| 2 | use Test::More; | 2 | use Test::More; |
| 3 | if (! -e "./test_ini") { | 3 | if (! -e "./test_ini1") { |
| 4 | plan skip_all => "./test_ini not compiled - please install tap library and/or enable parse-ini to test"; | 4 | plan skip_all => "./test_ini not compiled - please install tap library and/or enable parse-ini to test"; |
| 5 | } | 5 | } |
| 6 | exec "./test_ini"; | 6 | exec "./test_ini1"; |
diff --git a/lib/tests/test_ini3.t b/lib/tests/test_ini3.t index 57388dda..4b0be4c6 100755 --- a/lib/tests/test_ini3.t +++ b/lib/tests/test_ini3.t | |||
| @@ -3,7 +3,7 @@ use Test::More; | |||
| 3 | use strict; | 3 | use strict; |
| 4 | use warnings; | 4 | use warnings; |
| 5 | 5 | ||
| 6 | if (! -e "./test_ini") { | 6 | if (! -e "./test_ini3") { |
| 7 | plan skip_all => "./test_ini not compiled - please install tap library and/or enable parse-ini to test"; | 7 | plan skip_all => "./test_ini not compiled - please install tap library and/or enable parse-ini to test"; |
| 8 | } | 8 | } |
| 9 | 9 | ||
| @@ -28,7 +28,7 @@ foreach my $args (@TESTS) { | |||
| 28 | } else { | 28 | } else { |
| 29 | delete($ENV{"NAGIOS_CONFIG_PATH"}); | 29 | delete($ENV{"NAGIOS_CONFIG_PATH"}); |
| 30 | } | 30 | } |
| 31 | system {'./test_ini2'} @$args; | 31 | system {'./test_ini3'} @$args; |
| 32 | cmp_ok($?>>8, '==', $rc, "Parse-ini die " . $count++); | 32 | cmp_ok($?>>8, '==', $rc, "Parse-ini die " . $count++); |
| 33 | } | 33 | } |
| 34 | 34 | ||
