Skip to content

Commit

Permalink
make rdpar exit with 1 when it errors: should fail some gh-workflow t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
jhmatthews committed Aug 31, 2023
1 parent c6b938f commit a73b736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/rdpar.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ rdpar_init ()
if ((rdout_ptr = fopen ("tmp.rdpar", "w")) == NULL)
{
printf ("Error: rdpar_init: Problem opening tmp.rdpar\n");
exit (0);
exit (1);
}
rdpar_stat = 1;
strcpy (current_filename, "tmp.rdpar.out");
Expand Down Expand Up @@ -489,7 +489,7 @@ string_process_from_command_line (question, dummy)
if (fgets (tdummy, LINELEN, stdin) == NULL)
{
printf ("Exiting since rdpar got EOF in interactive mode\n");
exit (0);
exit (1);
}
else if (tdummy[0] == '\n')
{ //Use the current value
Expand Down Expand Up @@ -1230,7 +1230,7 @@ string2int (word, string_choices, string_values, string_answer)
if (xv[i] == -9998 || xv[i] == -9999)
{
Error ("string2int: Internal programming error: value for rdchoice is an error retrun value\n");
exit (0);
exit (1);
}
}

Expand Down

0 comments on commit a73b736

Please sign in to comment.