Skip to content

Commit

Permalink
test: use timeout multipler 3 for valgrind
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed May 18, 2016
1 parent cd02d73 commit 90e5c70
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,10 +1009,15 @@ int main(int argc, char **argv) {
test_curr->state = TEST_PASSED;
test_curr->start = test_clock();

if (!strcmp(test_mode, "helgrind")) {
if (!strcmp(test_mode, "helgrind") ||
!strcmp(test_mode, "drd")) {
TEST_LOCK();
test_timeout_multiplier *= 5;
TEST_UNLOCK();
} else if (!strcmp(test_mode, "valgrind")) {
TEST_LOCK();
test_timeout_multiplier *= 3;
TEST_UNLOCK();
}

TEST_SAY("Tests to run: %s\n", tests_to_run ? tests_to_run : "all");
Expand Down

0 comments on commit 90e5c70

Please sign in to comment.