From a866456dc903e95746d656179463ade819e55cf0 Mon Sep 17 00:00:00 2001 From: "John H. Hartman" Date: Wed, 8 Jan 2025 15:19:19 -0600 Subject: [PATCH] Modify to avoid exit(0) exit(0) currently doesn't work with CHPL_LAUNCHER=slurm-srun and CHPL_COMM=ofi, so avoid it. Signed-off-by: John H. Hartman --- test/runtime/jhh/numColocales.chpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/runtime/jhh/numColocales.chpl b/test/runtime/jhh/numColocales.chpl index bf573d313163..dce6a30b4978 100644 --- a/test/runtime/jhh/numColocales.chpl +++ b/test/runtime/jhh/numColocales.chpl @@ -3,13 +3,14 @@ use OS.POSIX; use IO.FormattedIO; +var status = "Success"; var value = getenv("CHPL_RT_LOCALES_PER_NODE"); if value { var n = string.createCopyingBuffer(value):int; if n != here.numColocales { writef("CHPL_RT_LOCALES_PER_NODE != here.numColocales (%i != %i)\n", n, here.numColocales); - exit(0); + status = "Failure"; } } -writeln("Success"); +writeln(status);