[flang-commits] [flang] [flang] Fix execute_command_line cmdstat is not set when error occurs (PR #93023)

Yi Wu via flang-commits flang-commits at lists.llvm.org
Mon Jun 24 07:23:11 PDT 2024


yi-wu-arm wrote:

This has cause test failure on the llvm-test-suite, because we provide different cmdstat and more detailed cmdmsg.
Test would fail on:
[execute_command_line_1.f90](https://github.com/llvm/llvm-test-suite/blob/6a38b2969dab9a0c98c6de3c792294f9e118b8de/Fortran/gfortran/regression/execute_command_line_1.f90#L31-L32): (Line31):   `call execute_command_line ("ls *.doesnotexist", .true., i)` should be terminated but the test expected not. (if a non-zero value is assigned to `cmdstat` but `cmdstat` is not present, terminate)
[execute_command_line_3.f90](https://github.com/llvm/llvm-test-suite/blob/6a38b2969dab9a0c98c6de3c792294f9e118b8de/Fortran/gfortran/regression/execute_command_line_3.f90#L14-L15): we provide different cmdstat and better cmdmsg
No affect on:
https://github.com/llvm/llvm-test-suite/blob/6a38b2969dab9a0c98c6de3c792294f9e118b8de/Fortran/gfortran/regression/execute_command_line_2.f90#L4

https://github.com/llvm/llvm-project/pull/93023


More information about the flang-commits mailing list