Skip to content

Commit 95e76be

Browse files
committed
cleanup path make_directory_all + typo
1 parent e16f192 commit 95e76be

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/specs/stdlib_system.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ Subroutine
562562

563563
### Return values
564564

565-
`err` is an optional state return flag. If not requested and an error occurs, a `FS_ERROR` will trigger an error stop.
565+
`err` is an optional state return flag. If not requested and an error occurs, an `FS_ERROR` will trigger an error stop.
566566

567567
### Example
568568

@@ -599,7 +599,7 @@ Subroutine
599599

600600
### Return values
601601

602-
`err` is an optional state return flag. If not requested and an error occurs, a `FS_ERROR` will trigger an error stop.
602+
`err` is an optional state return flag. If not requested and an error occurs, an `FS_ERROR` will trigger an error stop.
603603

604604
### Example
605605

@@ -636,7 +636,7 @@ Subroutine
636636

637637
### Return values
638638

639-
`err` is an optional state return flag. On error if not requested, a `FS_ERROR` will trigger an error stop.
639+
`err` is an optional state return flag. On error if not requested, an `FS_ERROR` will trigger an error stop.
640640

641641
### Example
642642

test/system/test_filesystem.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ subroutine test_make_directory_all(error)
239239

240240
! clean up: remove the empty directory
241241
if (is_windows()) then
242-
call execute_command_line('rmdir /s /q ' // dir_name, exitstat=ios, cmdstat=iocmd, cmdmsg=msg)
242+
call execute_command_line('rmdir /s /q d1', exitstat=ios, cmdstat=iocmd, cmdmsg=msg)
243243
else
244-
call execute_command_line('rm -rf ' // dir_name, exitstat=ios, cmdstat=iocmd, cmdmsg=msg)
244+
call execute_command_line('rm -rf d1', exitstat=ios, cmdstat=iocmd, cmdmsg=msg)
245245
end if
246246

247247
call check(error, ios==0 .and. iocmd==0, 'Cannot cleanup make_directory_all test: '//trim(msg))

0 commit comments

Comments
 (0)