lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r467457 - /lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/VariadicMacros.charm
Date Tue, 24 Oct 2006 19:54:52 GMT
Author: marvin
Date: Tue Oct 24 12:54:51 2006
New Revision: 467457

URL: http://svn.apache.org/viewvc?view=rev&rev=467457
Log:
Fix test that was being skipped.

Modified:
    lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/VariadicMacros.charm

Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/VariadicMacros.charm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/VariadicMacros.charm?view=diff&rev=467457&r1=467456&r2=467457
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/VariadicMacros.charm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Test/VariadicMacros.charm Tue Oct 24 12:54:51
2006
@@ -9,7 +9,7 @@
                                   int *num_failed, int *num_skipped)
 {
     int test_num  = 0;
-    *num_tests    = 3;
+    *num_tests    = 4;
     *num_passed   = 0;
     *num_failed   = 0;
     *num_skipped  = *num_tests;
@@ -17,14 +17,16 @@
     chaz_bool_t really_has_var_macs = false;
     int i;
 
-#ifndef HAS_VARIADIC_MACROS
-  #if defined(HAS_ISO_VARIADIC_MACROS) || defined(HAS_GNUC_VARIADIC_MACROS)
-    Assert_True(0, "#defines agree");
-  #else 
+#if defined(HAS_ISO_VARIADIC_MACROS) || defined(HAS_GNUC_VARIADIC_MACROS)
+  #ifdef HAS_VARIADIC_MACROS
     Assert_True(1, "#defines agree");
-    Skip_Remaining("No variadic macro support");
+  #else 
+    Assert_True(0, "#defines agree");
   #endif
+#else
+    Skip_Remaining("No variadic macro support");
 #endif
+
 
 #ifdef HAS_ISO_VARIADIC_MACROS
  #define ISO_TEST(buffer, fmt, ...) \



Mime
View raw message