Skip to content

Commit 3bd693f

Browse files
authored
enable execute_command_line tests (#82)
build and pass all three test on Linux. This is because `execute_command_line` calls `std::system`, and on Windows that is cmd. cmd doesn't have `ls`, the Windows equivalent command is `dir`, and for `timeout` for `sleep`. It will compile and run correct based on the standard, however, the printout from the execution won't be the same on Linux. For example: https://github.com/llvm/llvm-test-suite/blob/394a62ec2d23a26600062df47a7614201aea43c7/Fortran/gfortran/regression/execute_command_line_1.f90#L10 This will compile but will cause: ``` fatal Fortran runtime error(.......regression\execute_command_line_1.f90:31): Invalid command quit with exit status code: 1 ``` as this is expected based on the standard, if cmdstat is assigned with non-zero value but the `CMDSTAT` variable is not present, error termination is initiated. https://github.com/llvm/llvm-project/blob/c9a6e993f7b349405b6c8f9244cd9cf0f56a6a81/flang/docs/Intrinsics.md?plain=1#L905
1 parent 394a62e commit 3bd693f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Fortran/gfortran/regression/DisabledFiles.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -844,11 +844,6 @@ file(GLOB UNIMPLEMENTED_FILES CONFIGURE_DEPENDS
844844
erf_2.F90
845845
erf_3.F90
846846

847-
# unimplemented: intrinsic: execute_command_line
848-
execute_command_line_1.f90
849-
execute_command_line_2.f90
850-
execute_command_line_3.f90
851-
852847
# unimplemented: intrinsic: failed_images
853848
coarray_failed_images_1.f08
854849

0 commit comments

Comments
 (0)