@@@ tvec doc wip
[mLib] / test / tvec-core.c
index f6d7918..65c74cf 100644 (file)
@@ -744,7 +744,7 @@ void tvec_xfail(struct tvec_state *tv)
 static void check(struct tvec_state *tv, struct groupstate *g)
 {
   const struct tvec_test *t = tv->test;
-  const struct tvec_env *env;
+  const struct tvec_env *env = t->env;
   const struct tvec_regdef *rd;
 
   if (!(tv->f&TVSF_OPEN)) return;
@@ -761,7 +761,6 @@ static void check(struct tvec_state *tv, struct groupstate *g)
 
   if (!(tv->f&TVSF_SKIP)) {
     begin_test(tv);
-    env = t->env;
     if (env && env->before) env->before(tv, g->ctx);
     if (!(tv->f&TVSF_ACTIVE))
       /* setup forced a skip */;