diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-04-27 13:25:10 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-04-27 13:25:10 +0000 |
commit | 34cb16d283298885b73f75146433a703e93c0d4f (patch) | |
tree | c1e7b1b0ff0ad3e59e4921dd5e65d4527cd23d3f /plugins/tests | |
parent | 37ebbab7fbd251c4c357459ff738847f5a5a4883 (diff) | |
download | monitoring-plugins-34cb16d283298885b73f75146433a703e93c0d4f.tar.gz |
Internal version of basename if one not found in system
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1383 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/tests')
-rw-r--r-- | plugins/tests/test_utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/tests/test_utils.c b/plugins/tests/test_utils.c index 5aa0028a..67c304a3 100644 --- a/plugins/tests/test_utils.c +++ b/plugins/tests/test_utils.c | |||
@@ -34,7 +34,7 @@ main (int argc, char **argv) | |||
34 | thresholds *thresholds = NULL; | 34 | thresholds *thresholds = NULL; |
35 | int rc; | 35 | int rc; |
36 | 36 | ||
37 | plan_tests(73); | 37 | plan_tests(74); |
38 | 38 | ||
39 | range = parse_range_string("6"); | 39 | range = parse_range_string("6"); |
40 | ok( range != NULL, "'6' is valid range"); | 40 | ok( range != NULL, "'6' is valid range"); |
@@ -165,6 +165,9 @@ main (int argc, char **argv) | |||
165 | ok( strcmp(test, "everything") == 0, "everything okay"); | 165 | ok( strcmp(test, "everything") == 0, "everything okay"); |
166 | free(test); | 166 | free(test); |
167 | 167 | ||
168 | test = basename("/here/is/a/path"); | ||
169 | ok( strcmp(test, "path") == 0, "basename okay"); | ||
170 | |||
168 | return exit_status(); | 171 | return exit_status(); |
169 | } | 172 | } |
170 | 173 | ||