3 ! Check that EXECUTE_COMMAND_LINE handles invalid command lines appropriately
5 integer :: s
= 0, c
= 0
6 character(len
=255) :: msg
= ""
8 ! This should fail, set CMDSTAT to nonzero value, and an error message
10 call execute_command_line ("/nosuchfile", exitstat
=s
, cmdstat
=c
, cmdmsg
=msg
)
11 if (c
== 0) call abort
12 if (len_trim(msg
) == 0) call abort