Skip to content

Commit

Permalink
Do some GROW_MAPs in checksum_sanity test
Browse files Browse the repository at this point in the history
  • Loading branch information
rocallahan committed Oct 31, 2023
1 parent 9bea13b commit e7b96b6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/test/checksum_sanity.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,26 @@

static void* do_thread(__attribute__((unused)) void* p) { return NULL; }

static volatile int dummy;

static void do_some_recursion(int depth) {
dummy = depth;
if (depth > 0) {
do_some_recursion(depth - 1);
}
dummy = 0;
}

int main(int argc, char** argv) {
pthread_t thread;
pid_t child;
int status;

if (argc > 1) {
return 77;
}
};

do_some_recursion(16000);

pthread_create(&thread, NULL, do_thread, NULL);
pthread_join(thread, NULL);
Expand Down

0 comments on commit e7b96b6

Please sign in to comment.