diff options
author | Craig Tiller <ctiller@google.com> | 2017-04-24 20:50:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 20:50:55 -0700 |
commit | dc2e0843dc1f7b152b145e167ff2990742716a43 (patch) | |
tree | 7bd44d7b42833aadf639a87b87ee47df67457133 /test | |
parent | c090c619c117912b8c9e88a3c4bc8f778a94d582 (diff) | |
parent | 25149249ec74eade6af512f2573c694c34fab9fd (diff) |
Merge pull request #10826 from ctiller/ubsan
Slow down timers for ubsan builds
Diffstat (limited to 'test')
-rw-r--r-- | test/core/util/test_config.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/core/util/test_config.c b/test/core/util/test_config.c index 0180d6f08d..9a400c54ca 100644 --- a/test/core/util/test_config.c +++ b/test/core/util/test_config.c @@ -348,6 +348,14 @@ bool BuiltUnderMsan() { #endif } +bool BuiltUnderUbsan() { +#ifdef GRPC_UBSAN + return true; +#else + return false; +#endif +} + int64_t grpc_test_sanitizer_slowdown_factor() { int64_t sanitizer_multiplier = 1; if (BuiltUnderValgrind()) { @@ -358,6 +366,8 @@ int64_t grpc_test_sanitizer_slowdown_factor() { sanitizer_multiplier = 3; } else if (BuiltUnderMsan()) { sanitizer_multiplier = 4; + } else if (BuiltUnderUbsan()) { + sanitizer_multiplier = 5; } return sanitizer_multiplier; } |