Skip to content

Commit

Permalink
Bisect find segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
swenson committed Feb 13, 2024
1 parent 2d12a3f commit cc64bff
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions stresstest.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,32 +250,32 @@ int run_tests(int64_t *sizes, int sizes_cnt, int type) {
int64_t * dst = (int64_t *)malloc(MAXSIZE * sizeof(int64_t));
printf("-------\nRunning tests with %s:\n-------\n", test_names[type]);
TEST_STDLIB(qsort);
#if !defined(__linux__) && !defined(__CYGWIN__) && !defined(_WIN32)
TEST_STDLIB(heapsort);
TEST_STDLIB(mergesort);
#endif

if (MAXSIZE < 10000) {
#ifdef SET_SORT_EXTRA
TEST_SORT_H(selection_sort);
TEST_SORT_H(bubble_sort);
#endif
TEST_SORT_H(binary_insertion_sort);
TEST_SORT_H(bitonic_sort);
}

TEST_SORT_H(quick_sort);
TEST_SORT_H(merge_sort);
TEST_SORT_H(heap_sort);
TEST_SORT_H(shell_sort);
TEST_SORT_H(tim_sort);
TEST_SORT_H(merge_sort_in_place);
#ifdef SET_SORT_EXTRA
TEST_SORT_H(grail_sort);
TEST_SORT_H(sqrt_sort);
TEST_SORT_H(rec_stable_sort);
TEST_SORT_H(grail_sort_dyn_buffer);
#endif
// #if !defined(__linux__) && !defined(__CYGWIN__) && !defined(_WIN32)
// TEST_STDLIB(heapsort);
// TEST_STDLIB(mergesort);
// #endif

// if (MAXSIZE < 10000) {
// #ifdef SET_SORT_EXTRA
// TEST_SORT_H(selection_sort);
// TEST_SORT_H(bubble_sort);
// #endif
// TEST_SORT_H(binary_insertion_sort);
// TEST_SORT_H(bitonic_sort);
// }

// TEST_SORT_H(quick_sort);
// TEST_SORT_H(merge_sort);
// TEST_SORT_H(heap_sort);
// TEST_SORT_H(shell_sort);
// TEST_SORT_H(tim_sort);
// TEST_SORT_H(merge_sort_in_place);
// #ifdef SET_SORT_EXTRA
// TEST_SORT_H(grail_sort);
// TEST_SORT_H(sqrt_sort);
// TEST_SORT_H(rec_stable_sort);
// TEST_SORT_H(grail_sort_dyn_buffer);
// #endif
free(dst);
return 0;
}
Expand Down

0 comments on commit cc64bff

Please sign in to comment.