aboutsummaryrefslogtreecommitdiff
path: root/plugins/tests
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-04-27 13:25:10 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-04-27 13:25:10 +0000
commit34cb16d283298885b73f75146433a703e93c0d4f (patch)
treec1e7b1b0ff0ad3e59e4921dd5e65d4527cd23d3f /plugins/tests
parent37ebbab7fbd251c4c357459ff738847f5a5a4883 (diff)
downloadmonitoring-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.c5
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)
thresholds *thresholds = NULL;
int rc;
- plan_tests(73);
+ plan_tests(74);
range = parse_range_string("6");
ok( range != NULL, "'6' is valid range");
@@ -165,6 +165,9 @@ main (int argc, char **argv)
ok( strcmp(test, "everything") == 0, "everything okay");
free(test);
+ test = basename("/here/is/a/path");
+ ok( strcmp(test, "path") == 0, "basename okay");
+
return exit_status();
}