@@ -67,7 +67,7 @@ subroutine fs_run_invalid_command(error)
67
67
68
68
integer :: stat
69
69
70
- call run(" invalid_command" , stat = stat)
70
+ call run(" invalid_command" , iostat = stat)
71
71
call check(error, stat, " Running an invalid command should fail." )
72
72
end
73
73
@@ -76,7 +76,7 @@ subroutine fs_run_with_invalid_option(error)
76
76
77
77
integer :: stat
78
78
79
- call run(" whoami -X" , stat = stat)
79
+ call run(" whoami -X" , iostat = stat)
80
80
call check(error, stat, " Running a valid command with an invalid option should fail." )
81
81
end
82
82
@@ -85,7 +85,7 @@ subroutine fs_run_valid_command(error)
85
85
86
86
integer :: stat
87
87
88
- call run(" whoami" , stat = stat)
88
+ call run(" whoami" , iostat = stat)
89
89
call check(error, stat, " Running a valid command should not fail." )
90
90
end
91
91
@@ -95,12 +95,12 @@ subroutine fs_list_dir_empty(error)
95
95
integer :: stat
96
96
type (string_type), allocatable :: files(:)
97
97
98
- call run(' rm -rf ' // temp_list_dir, stat = stat)
98
+ call run(' rm -rf ' // temp_list_dir, iostat = stat)
99
99
if (stat /= 0 ) then
100
100
call test_failed(error, " Removing directory '" // temp_list_dir// " ' failed." ); return
101
101
end if
102
102
103
- call run(' mkdir ' // temp_list_dir, stat = stat)
103
+ call run(' mkdir ' // temp_list_dir, iostat = stat)
104
104
if (stat /= 0 ) then
105
105
call test_failed(error, " Creating directory '" // temp_list_dir// " ' failed." ); return
106
106
end if
@@ -109,7 +109,7 @@ subroutine fs_list_dir_empty(error)
109
109
call check(error, stat, " Listing the contents of an empty directory shouldn't fail." )
110
110
call check(error, size (files) == 0 , " The directory should be empty." )
111
111
112
- call run(' rm -rf ' // temp_list_dir, stat = stat)
112
+ call run(' rm -rf ' // temp_list_dir, iostat = stat)
113
113
end
114
114
115
115
subroutine fs_list_dir_one_file (error )
@@ -120,17 +120,17 @@ subroutine fs_list_dir_one_file(error)
120
120
type (string_type), allocatable :: files(:)
121
121
character (* ), parameter :: filename = ' abc.txt'
122
122
123
- call run(' rm -rf ' // temp_list_dir, stat = stat)
123
+ call run(' rm -rf ' // temp_list_dir, iostat = stat)
124
124
if (stat /= 0 ) then
125
125
call test_failed(error, " Removing directory '" // temp_list_dir// " ' failed." ); return
126
126
end if
127
127
128
- call run(' mkdir ' // temp_list_dir, stat = stat)
128
+ call run(' mkdir ' // temp_list_dir, iostat = stat)
129
129
if (stat /= 0 ) then
130
130
call test_failed(error, " Creating directory '" // temp_list_dir// " ' failed." ); return
131
131
end if
132
132
133
- call run(' touch ' // temp_list_dir// ' /' // filename, stat = stat)
133
+ call run(' touch ' // temp_list_dir// ' /' // filename, iostat = stat)
134
134
if (stat /= 0 ) then
135
135
call test_failed(error, " Creating file'" // filename// " ' in directory '" // temp_list_dir// " ' failed." ); return
136
136
end if
@@ -140,7 +140,7 @@ subroutine fs_list_dir_one_file(error)
140
140
call check(error, size (files) == 1 , " The directory should contain one file." )
141
141
call check(error, char (files(1 )) == filename, " The file should be '" // filename// " '." )
142
142
143
- call run(' rm -rf ' // temp_list_dir, stat = stat)
143
+ call run(' rm -rf ' // temp_list_dir, iostat = stat)
144
144
end
145
145
146
146
subroutine fs_list_dir_two_files (error )
@@ -152,22 +152,22 @@ subroutine fs_list_dir_two_files(error)
152
152
character (* ), parameter :: filename1 = ' abc.txt'
153
153
character (* ), parameter :: filename2 = ' xyz'
154
154
155
- call run(' rm -rf ' // temp_list_dir, stat = stat)
155
+ call run(' rm -rf ' // temp_list_dir, iostat = stat)
156
156
if (stat /= 0 ) then
157
157
call test_failed(error, " Removing directory '" // temp_list_dir// " ' failed." ); return
158
158
end if
159
159
160
- call run(' mkdir ' // temp_list_dir, stat = stat)
160
+ call run(' mkdir ' // temp_list_dir, iostat = stat)
161
161
if (stat /= 0 ) then
162
162
call test_failed(error, " Creating directory '" // temp_list_dir// " ' failed." ); return
163
163
end if
164
164
165
- call run(' touch ' // temp_list_dir// ' /' // filename1, stat = stat)
165
+ call run(' touch ' // temp_list_dir// ' /' // filename1, iostat = stat)
166
166
if (stat /= 0 ) then
167
167
call test_failed(error, " Creating file 1 in directory '" // temp_list_dir// " ' failed." ); return
168
168
end if
169
169
170
- call run(' touch ' // temp_list_dir// ' /' // filename2, stat = stat)
170
+ call run(' touch ' // temp_list_dir// ' /' // filename2, iostat = stat)
171
171
if (stat /= 0 ) then
172
172
call test_failed(error, " Creating file 2 in directory '" // temp_list_dir// " ' failed." ); return
173
173
end if
@@ -178,7 +178,7 @@ subroutine fs_list_dir_two_files(error)
178
178
call check(error, char (files(1 )) == filename1, " The file should be '" // filename1// " '." )
179
179
call check(error, char (files(2 )) == filename2, " The file should be '" // filename2// " '." )
180
180
181
- call run(' rm -rf ' // temp_list_dir, stat = stat)
181
+ call run(' rm -rf ' // temp_list_dir, iostat = stat)
182
182
end
183
183
184
184
subroutine delete_file (filename )
0 commit comments