Skip to content

Commit

Permalink
Merge pull request #5888 from grondo/issue#3120
Browse files Browse the repository at this point in the history
fix potential segfault in test_terminus.t
  • Loading branch information
mergify[bot] committed Apr 16, 2024
2 parents f3efc58 + aaf3495 commit 0431257
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/libterminus/test/terminus.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ static int terminus_server (flux_t *h, void *arg)
int rc = -1;
struct flux_terminus_server *t;

/* set rank == -1 for testing. Avoid flux_get_rank(3) */
setenv ("FLUX_TERMINUS_TEST_SERVER", "t", 1);

/* N.B.: test_server handle `h` already has reactor with SIGCHLD
* flag set.
*/
Expand Down Expand Up @@ -476,6 +473,9 @@ int main (int argc, char *argv[])
if (getenv ("SHELL") == NULL)
setenv ("SHELL", "/bin/sh", 1);

/* set rank == -1 for testing. Avoid flux_get_rank(3) */
setenv ("FLUX_TERMINUS_TEST_SERVER", "t", 1);

test_invalid_args ();
test_kill_server_empty ();
test_protocol ();
Expand Down

0 comments on commit 0431257

Please sign in to comment.