File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -192,13 +192,24 @@ void main() {
192
192
io.Directory ('$path /subdir1/subdir2' ).createSync (recursive: true );
193
193
io.File ('$path /subdir1/subdir2/file1' ).writeAsStringSync ('Hello World' );
194
194
// r-xr-x---
195
- if (libc.chmod ('$path /subdir1/subdir2' .toNativeUtf8 ().cast (), 360 ) ==
196
- - 1 ) {
197
- assert (libc.errno == 0 );
198
- }
195
+ using ((arena) {
196
+ if (libc.chmod (
197
+ '$path /subdir1/subdir2' .toNativeUtf8 (allocator: arena).cast (),
198
+ 360 ,
199
+ ) ==
200
+ - 1 ) {
201
+ assert (libc.errno == 0 );
202
+ }
203
+ });
204
+
199
205
addTearDown (
200
206
// rwxrwxrwx
201
- () => libc.chmod ('$path /subdir1/subdir2' .toNativeUtf8 ().cast (), 511 ),
207
+ () => using (
208
+ (arena) => libc.chmod (
209
+ '$path /subdir1/subdir2' .toNativeUtf8 (allocator: arena).cast (),
210
+ 511 ,
211
+ ),
212
+ ),
202
213
);
203
214
204
215
expect (
You can’t perform that action at this time.
0 commit comments