[libsoup/wip/asan-test] http2-test: Don't have timeout when ran under asan




commit 036c91cf830b79b71f9b12c9a152c1ccbda0647e
Author: Patrick Griffis <pgriffis igalia com>
Date:   Tue May 25 10:52:02 2021 -0500

    http2-test: Don't have timeout when ran under asan

 tests/http2-server.py | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/tests/http2-server.py b/tests/http2-server.py
index 5184c600..977aff15 100755
--- a/tests/http2-server.py
+++ b/tests/http2-server.py
@@ -2,6 +2,7 @@
 
 import asyncio
 from functools import wraps
+import os
 from secrets import compare_digest
 import sys
 from urllib.parse import urlparse
@@ -20,6 +21,10 @@ loop = None
 def set_timeout():
     global timer_handle
 
+    # ASAN is very slow, just don't have a timer.
+    if 'ASAN_OPTIONS' in os.environ:
+        return
+
     if timer_handle:
         timer_handle.cancel()
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]