Permalink
Browse files

tests: Clear the global registers before each test.

This fixes tests in check's no-fork mode.
  • Loading branch information...
nelhage committed Jan 3, 2009
1 parent b921288 commit b49cf2d2ac553b2a4af50d75fb2511f0b9508fb2
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests.c
View
@@ -9,6 +9,7 @@ gc_handle reg1, reg2;
static void gc_core_setup(void) {
gc_init();
+ reg1 = reg2 = NIL;
gc_register_roots(&reg1, &reg2, NULL);
}

0 comments on commit b49cf2d

Please sign in to comment.