SF.net SVN: nagiosplug:[2121] nagiosplug/trunk/lib/tests/test_utils.c

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
Revision: 2121
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2121&view=rev
Author:   dermoth
Date:     2009-01-09 07:50:19 +0000 (Fri, 09 Jan 2009)

Log Message:
-----------
basename check in test_utils.c was accidentaly added again.

In 538b97c I reverted a serie of libtap patch by Ton Voon; it included
the removal of the useless basename check.

Relevant portion of the changelog from which it was removed (f31cd40):

  Removed basename test as we should use base_name from GNUlib which is
	tested separately

From: Thomas Guyot-Sionnest <[email protected]>

Modified Paths:
--------------
    nagiosplug/trunk/lib/tests/test_utils.c

Modified: nagiosplug/trunk/lib/tests/test_utils.c
===================================================================
--- nagiosplug/trunk/lib/tests/test_utils.c	2009-01-09 07:31:28 UTC (rev 2120)
+++ nagiosplug/trunk/lib/tests/test_utils.c	2009-01-09 07:50:19 UTC (rev 2121)
@@ -171,10 +171,6 @@
 
 	test = np_escaped_string("everything");
 	ok( strcmp(test, "everything") == 0, "everything okay");
-	free(test);
 
-	test = (char *)basename("/here/is/a/path");
-	ok( strcmp(test, "path") == 0, "basename okay");
-
 	return exit_status();
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.