From fb0d735f68428986d5ede4a62595890fcc82581e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Boro=C5=84ski?= <94375110+kboronski-ant@users.noreply.github.com> Date: Tue, 23 May 2023 20:02:40 +0200 Subject: [PATCH] Tests: Skip t_suspendable_deep if coroutines are not supported by CXX toolchain (#4217) --- test_regress/t/t_suspendable_deep.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test_regress/t/t_suspendable_deep.pl b/test_regress/t/t_suspendable_deep.pl index e7824bce9..422d61e57 100755 --- a/test_regress/t/t_suspendable_deep.pl +++ b/test_regress/t/t_suspendable_deep.pl @@ -10,9 +10,14 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di scenarios(vlt => 1); -compile( - verilator_flags2 => ["--timing"], - ); +if (!$Self->have_coroutines) { + skip("No coroutine support"); +} +else { + compile( + verilator_flags2 => ["--timing"], + ); +} ok(1); 1;