From 50301f22ec3979a0ccf27b95a4b78730151d2fe9 Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Sat, 3 Jun 2017 15:47:06 +0100 Subject: [PATCH] tests: Skip speed tests when running on Valgrind --- tests.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests.c b/tests.c index 40a6657c43..2d9bbbcc8a 100644 --- a/tests.c +++ b/tests.c @@ -3157,10 +3157,12 @@ Suite *test_suite(void) tcase_add_test(tc, test_rfc6979); suite_add_tcase(s, tc); - tc = tcase_create("speed"); - tcase_add_test(tc, test_sign_speed); - tcase_add_test(tc, test_verify_speed); - suite_add_tcase(s, tc); + if (!RUNNING_ON_VALGRIND) { + tc = tcase_create("speed"); + tcase_add_test(tc, test_sign_speed); + tcase_add_test(tc, test_verify_speed); + suite_add_tcase(s, tc); + } tc = tcase_create("address"); tcase_add_test(tc, test_address);