Skip to content

Commit 3560a6f

Browse files
committed
missing is_windows tests
1 parent 15689bc commit 3560a6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/system/test_subprocess.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module test_subprocess
22
use testdrive, only : new_unittest, unittest_type, error_type, check, skip_test
3-
use stdlib_system, only: process_type, run, runasync, is_running, wait, update, elapsed, has_win32, kill
3+
use stdlib_system, only: process_type, run, runasync, is_running, wait, update, elapsed, is_windows, kill
44

55
implicit none
66

@@ -39,7 +39,7 @@ subroutine test_run_asynchronous(error)
3939
logical :: running
4040

4141
! The closest possible to a cross-platform command that waits
42-
if (has_win32()) then
42+
if (is_windows()) then
4343
process = runasync("ping -n 2 127.0.0.1")
4444
else
4545
process = runasync("ping -c 2 127.0.0.1")
@@ -67,7 +67,7 @@ subroutine test_process_kill(error)
6767
logical :: running, success
6868

6969
! Start a long-running process asynchronously
70-
if (has_win32()) then
70+
if (is_windows()) then
7171
process = runasync("ping -n 10 127.0.0.1")
7272
else
7373
process = runasync("ping -c 10 127.0.0.1")

0 commit comments

Comments
 (0)