Skip to content

Commit 148b950

Browse files
committed
XX sleep and rename file
1 parent 37312f0 commit 148b950

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/tests/bitsets/test_stdlib_bitset_large.f90

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,17 +244,25 @@ subroutine test_io()
244244
'write_bitset'
245245

246246
call set2 % from_string( bitstring_33 )
247-
open( newunit=unit, file='test.txt', status='replace', &
247+
open( newunit=unit, file='test123.txt', status='replace', &
248248
form='formatted', action='write' )
249249
call set2 % write_bitset(unit)
250250
call set1 % write_bitset(unit)
251251
call set0 % write_bitset(unit)
252252
close( unit )
253-
open( newunit=unit, file='test.txt', status='old', &
253+
254+
! Wait 10 seconds, in the hope that the file gets saved before we open it
255+
call sleep(10)
256+
257+
open( newunit=unit, file='test123.txt', status='old', &
254258
form='formatted', action='read' )
259+
print *, "1"
255260
call set3 % read_bitset(unit)
261+
print *, "2"
256262
call set5 % read_bitset(unit)
263+
print *, "3"
257264
call set4 % read_bitset(unit)
265+
print *, "4"
258266
if ( set4 /= set0 .or. set5 /= set1 .or. set3 /= set2 ) then
259267
error stop procedure // ' transfer to and from units using ' // &
260268
' bitset literals failed.'

0 commit comments

Comments
 (0)