Enlightenment CVS committal
Author : mej
Project : eterm
Module : libast
Dir : eterm/libast/test
Modified Files:
test.c test.h
Log Message:
Wed Feb 4 10:53:04 2004 Michael Jennings (mej)
Should be all fixed now.
===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/test/test.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- test.c 3 Feb 2004 23:17:00 -0000 1.36
+++ test.c 4 Feb 2004 17:51:26 -0000 1.37
@@ -21,7 +21,7 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-static const char cvs_ident[] = "$Id: test.c,v 1.36 2004/02/03 23:17:00 mej Exp $";
+static const char cvs_ident[] = "$Id: test.c,v 1.37 2004/02/04 17:51:26 mej Exp $";
#if defined(HAVE_CONFIG_H) && (HAVE_CONFIG_H != 0)
# include <config.h>
@@ -1395,7 +1395,6 @@
spif_str_init_from_ptr(s, "GRIN");
s2 = SPIF_CAST(str) SPIF_VECTOR_REMOVE(testvector, s);
TEST_FAIL_IF(!SPIF_OBJ_ISNULL(s2));
- spif_str_del(s2);
spif_str_del(s);
TEST_PASS();
===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/test/test.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- test.h 10 Jan 2004 21:15:17 -0000 1.8
+++ test.h 4 Feb 2004 17:51:26 -0000 1.9
@@ -24,9 +24,9 @@
#ifndef _LIBAST_TEST_H_
# define _LIBAST_TEST_H_
-# define TEST_NOTICE(s) printf("%s\n", s)
+# define TEST_NOTICE(s) do {printf("%s\n", s);
fflush(stdout);} while (0)
# define TEST_BEGIN(s) do {tnum = 1; printf("Testing " s
"...");} while (0)
-# define TEST_PASS() printf("passed (%hu).\n", tnum - 1)
+# define TEST_PASS() do {printf("passed (%hu).\n", tnum -
1); fflush(stdout);} while (0)
# define TEST_FAIL(t) do { \
printf("failed at %s:%d (test
#%hu): Test \"%s\" returned %d.\n", \
__FILE__, __LINE__, tnum,
#t, (t)); \
@@ -34,6 +34,6 @@
} while (0)
# define TEST_FAIL_IF(t) do {if (t) {TEST_FAIL(t);} tnum++;}
while (0)
# define TEST_EXPECT(t) do {if (t) {TEST_PASS();} else
{TEST_FAIL(t);}} while (0)
-# define TEST_PASSED(s) printf("All " s " tests passed.\n\n");
return 0;
+# define TEST_PASSED(s) do {printf("All " s " tests
passed.\n\n"); fflush(stdout); return 0;} while (0)
#endif
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs