Skip to content

Commit

Permalink
tests: Clear the global registers before each test.
Browse files Browse the repository at this point in the history
This fixes tests in check's no-fork mode.
  • Loading branch information
nelhage committed Jan 3, 2009
1 parent b921288 commit b49cf2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b49cf2d

Please sign in to comment.