summaryrefslogtreecommitdiff
path: root/source/tests/test_too_many_tests.c
blob: 8d1aec0badc7ccefd72d5cc27f2d55577b0b7d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#define KIT_TEST_IMPLEMENTATION
#define KIT_TESTS_SIZE_LIMIT 40
#include "../kit/test.h"

void bar(int index, kit_test_report_fn report) { }

int main(int argc, char **argv) {
  int i;
  for (i = 0; i <= KIT_TESTS_SIZE_LIMIT; i++)
    test_register("foo", __FILE__, bar);

  if (run_tests(argc, argv) != 1)
    return 1;

  return 0;
}

#undef KIT_TEST_FILE