Skip to content

Commit afe606d

Browse files
committed
FCKIT-25 Workaround PGI compiler bug in test
1 parent 0a0311f commit afe606d

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

Diff for: src/tests/test_configuration.F90

+4-20
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
type(fckit_Configuration) :: config
3737
type(fckit_Configuration) :: nested
38-
type(fckit_Configuration) :: list(2)
38+
type(fckit_Configuration), allocatable :: list(:)
3939
logical :: found
4040
logical :: logval
4141
integer :: intval
@@ -73,10 +73,12 @@
7373
call config%set("logical_true",.True.)
7474
call config%set("logical_false",.False.)
7575

76+
7677
nested = fckit_Configuration()
7778
call nested%set("n1",11)
7879
call nested%set("n2",12)
7980

81+
allocate( list(2) )
8082
do j=1,2
8183
list(j) = fckit_Configuration()
8284
call list(j)%set("l1",21)
@@ -94,6 +96,7 @@
9496
call nested%final()
9597
#endif
9698

99+
97100
! --------------------- JSON ------------------
98101

99102
call fckit_log%info("config = "//config%json())
@@ -314,25 +317,6 @@
314317
#endif
315318
END_TEST
316319

317-
TEST(test_throw)
318-
!! ENABLE TO TEST IF THROW WILL WORK
319-
320-
#if 0
321-
use fckit_configuration_module
322-
type(fckit_Configuration) :: config
323-
324-
integer :: missing_value
325-
326-
write(0,*) "~~~~~~~~~~~~~~ SCOPE BEGIN ~~~~~~~~~~~~~~~"
327-
328-
config = fckit_Configuration()
329-
330-
call config%get_or_die("missing",missing_value)
331-
332-
call config%final()
333-
write(0,*) "~~~~~~~~~~~~~~~ SCOPE END ~~~~~~~~~~~~~~~~"
334-
#endif
335-
END_TEST
336320
! -----------------------------------------------------------------------------
337321

338322
END_TESTSUITE

0 commit comments

Comments
 (0)