[Nagiosplug-checkins] nagiosplug/plugins/tests test_utils.c,1.4,1.5

Ton Voon tonvoon at users.sourceforge.net
Thu Apr 27 06:27:05 CEST 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13938/plugins/tests

Modified Files:
	test_utils.c 
Log Message:
Internal version of basename if one not found in system


Index: test_utils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/tests/test_utils.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- test_utils.c	29 Mar 2006 16:33:36 -0000	1.4
+++ test_utils.c	27 Apr 2006 13:25:10 -0000	1.5
@@ -34,7 +34,7 @@
 	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 @@
 	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();
 }
 





More information about the Commits mailing list