Skip to content

Commit 540e2f7

Browse files
committed
Simulate sleep
1 parent 148b950 commit 540e2f7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/tests/bitsets/test_stdlib_bitset_large.f90

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ subroutine test_io()
238238
character(*), parameter:: procedure = 'TEST_IO'
239239

240240
integer :: unit
241+
integer :: j, i
241242

242243
write(*,*)
243244
write(*,*) 'Test bitset I/O: input, read_bitset, output, and ' // &
@@ -251,8 +252,13 @@ subroutine test_io()
251252
call set0 % write_bitset(unit)
252253
close( unit )
253254

254-
! Wait 10 seconds, in the hope that the file gets saved before we open it
255-
call sleep(10)
255+
! Sleep
256+
print *, "sleeping"
257+
i = 0
258+
do j = 1, 1000000000
259+
i = i + 1
260+
end do
261+
print *, "up"
256262

257263
open( newunit=unit, file='test123.txt', status='old', &
258264
form='formatted', action='read' )

0 commit comments

Comments
 (0)