Author: yamakenz
Date: Sat Apr 26 12:38:39 2008
New Revision: 5441

Modified:
  sigscheme-trunk/test-c/test-format.c
  sigscheme-trunk/test-c/test-storage.c

Log:
* test-format.c
 - Fix unintentional exclusion from make check due to lack of config.h
 - Follow the API change of scm_initialize()
* test-storage.c
 - Fix unintentional exclusion from make check due to lack of config.h
 - Fix conditional disable of hygienic macro tests in
   accordance with collect.sh


Modified: sigscheme-trunk/test-c/test-format.c
==============================================================================
--- sigscheme-trunk/test-c/test-format.c        (original)
+++ sigscheme-trunk/test-c/test-format.c        Sat Apr 26 12:38:39 2008
@@ -37,6 +37,7 @@
#include <stdarg.h>
#include <string.h>

+#include <sigscheme/config.h>
#if (!SCM_USE_CHAR || !SCM_USE_STRING || !SCM_USE_INT)
#define TST_EXCLUDE_THIS
#endif
@@ -105,7 +106,7 @@
{
    tst_suite_info suite = TST_DEFAULT_SUITE_SETUP;

-    scm_initialize(NULL);
+    scm_initialize(NULL, NULL);

    scm_gc_protect_with_init(&lst,
                             LIST_5(SCM_TRUE,

Modified: sigscheme-trunk/test-c/test-storage.c
==============================================================================
--- sigscheme-trunk/test-c/test-storage.c       (original)
+++ sigscheme-trunk/test-c/test-storage.c       Sat Apr 26 12:38:39 2008
@@ -37,6 +37,7 @@
#include <stdio.h>
#include <stdlib.h>

+#include <sigscheme/config.h>
#if (!SCM_USE_CHAR || !SCM_USE_VECTOR)
#define TST_EXCLUDE_THIS
#endif
@@ -417,13 +418,13 @@
}
#endif /* use sscm extension mechanism */

-#if SCM_USE_HYGIENIC_MACRO
#if SCM_USE_UNHYGIENIC_MACRO
#error "No test implemented."
#endif

TST_CASE("subpat")
{
+#if SCM_USE_HYGIENIC_MACRO
    ScmObj obj;
#define SUBPAT_TST(tst, pat, meta)              \
    tst(obj, SUBPAT,                            \
@@ -432,10 +433,12 @@

    SUBPAT_TST(TST_INIT2, LIST_1(SCM_NULL), -1);
    SUBPAT_TST(TST_SET2, SCM_NULL, 5);
+#endif /* SCM_USE_HYGIENIC_MACRO */
}

TST_CASE("far symbol")
{
+#if SCM_USE_HYGIENIC_MACRO
    ScmObj obj;
#if SCM_USE_UNHYGIENIC_MACRO
#error "Packed env handling must be revised."
@@ -453,10 +456,12 @@
    FARSYMBOL_TST(TST_INIT2, SCM_SYM_QUOTE, null);
    FARSYMBOL_TST(TST_SET2, SCM_MAKE_FARSYMBOL(SCM_SYM_QUOTE, null),
                  scm_pack_env(env));
+#endif /* SCM_USE_HYGIENIC_MACRO */
}

TST_CASE(hmacro, "hmacro")
{
+#if SCM_USE_HYGIENIC_MACRO
    ScmObj obj;
    ScmObj env, rules;

@@ -487,7 +492,7 @@
    SCM_HMACRO_SET_ENV(obj, scm_pack_env(env));
    HMACRO_TST(TST2, rules, scm_pack_env(env),
               "after SET_ENV");
+#endif /* SCM_USE_HYGIENIC_MACRO */
}

-#endif /* use hygienic macro */
#endif /* !TST_EXCLUDE_THIS */

Reply via email to