[libsoup] http2-test: Don't have timeout when ran under asan
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] http2-test: Don't have timeout when ran under asan
- Date: Tue, 25 May 2021 15:56:16 +0000 (UTC)
commit 8a0dab1a4254c3f0455eea69a2b0f9249b737310
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]