From 470a9f01f5ccd1a157146eca55b70ad6ddce344c Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Mon, 28 Oct 2024 00:19:40 +0100 Subject: [PATCH] tests: Only run `evaluate` on RPL examples if the stack is not empty Signed-off-by: Christophe de Dinechin --- src/tests.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests.cc b/src/tests.cc index 4e67d8ad..64b898d8 100644 --- a/src/tests.cc +++ b/src/tests.cc @@ -9879,7 +9879,8 @@ void tests::check_help_examples() size_t nfailures = failures.size(); testing = false; itest(LENGTHY(20000), ENTER).noerror(); - itest(LENGTHY(20000), RUNSTOP).noerror(); + if (rt.depth()) + itest(LENGTHY(20000), RUNSTOP).noerror(); if (!ref.empty()) { expect(ref.c_str());