#Centipede Report stack-limit-exceeded error only when running tests.

PiperOrigin-RevId: 706907067
diff --git a/centipede/runner.cc b/centipede/runner.cc
index e5714a0..4be5834 100644
--- a/centipede/runner.cc
+++ b/centipede/runner.cc
@@ -283,6 +283,8 @@
   // Check for the stack limit only if sp is inside the stack region.
   if (stack_limit > 0 && tls.stack_region_low &&
       tls.top_frame_sp - sp > stack_limit) {
+    const bool test_not_running = state.input_start_time == 0;
+    if (test_not_running) return;
     if (stack_limit_exceeded.test_and_set()) return;
     fprintf(stderr,
             "========= Stack limit exceeded: %" PRIuPTR