Skip to content

Commit

Permalink
Modify to avoid exit(0) (#26496)
Browse files Browse the repository at this point in the history
exit(0) currently doesn't work with CHPL_LAUNCHER=slurm-srun and
CHPL_COMM=ofi, so avoid it.

[Minor change, not reviewed.]
  • Loading branch information
jhh67 authored Jan 8, 2025
2 parents 0c92714 + a866456 commit 93f20b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/runtime/jhh/numColocales.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 93f20b2

Please sign in to comment.