[PATCH] tests: detect boost setup errors

9 views
Skip to first unread message

Waldemar Kozaczuk

unread,
May 11, 2022, 5:49:21 PM5/11/22
to osv...@googlegroups.com, Waldemar Kozaczuk
New boost (>= ~1.74) based unit tests started using sysconf()
to determine signal stack size which at this moment is not supported
by OSv implementation. These results in errors looking like this:

"Test setup error: std::bad_alloc: std::bad_alloc"

which are happily ignored by our error pattern detection logic
in testing.py. This patch adds one more failure pattern.

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>
---
scripts/tests/testing.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/tests/testing.py b/scripts/tests/testing.py
index a1cdec35..50b49c08 100644
--- a/scripts/tests/testing.py
+++ b/scripts/tests/testing.py
@@ -81,7 +81,8 @@ def scan_errors(s,scan_for_failed_to_load_object_error=True):
"at org.junit.runner.JUnitCore.main",
"ContextFailedException",
"AppThreadTerminatedWithUncaughtException",
- "\[backtrace\]"
+ "\[backtrace\]",
+ "Test setup error"
]

if scan_for_failed_to_load_object_error:
--
2.35.1

Commit Bot

unread,
May 13, 2022, 5:21:18 PM5/13/22
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

tests: detect boost setup errors

New boost (>= ~1.74) based unit tests started using sysconf()
to determine signal stack size which at this moment is not supported
by OSv implementation. These results in errors looking like this:

"Test setup error: std::bad_alloc: std::bad_alloc"

which are happily ignored by our error pattern detection logic
in testing.py. This patch adds one more failure pattern.

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/scripts/tests/testing.py b/scripts/tests/testing.py
Reply all
Reply to author
Forward
0 new messages