Skip to content

Commit

Permalink
Add testing for ESMF_LogInfo() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
theurich committed Dec 16, 2024
1 parent f393771 commit 7deaaec
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/Infrastructure/Base/tests/ESMF_InfoUTest.F90
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,29 @@ program ESMF_InfoUTest
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)
!----------------------------------------------------------------------------

!----------------------------------------------------------------------------
!NEX_UTest
write(name, *) "ESMF_InfoLog"
write(failMsg, *) "Did not return success."

rc = ESMF_FAILURE

info6 = ESMF_InfoCreate(rc=rc)
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)

call ESMF_InfoSet(info6, "/i/am/nested", 111, rc=rc)
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)

call ESMF_InfoSet(info6, "top-level", 222, rc=rc)
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)

call ESMF_InfoLog(info6, prefix="info6: ", rc=rc)
call ESMF_Test((rc == ESMF_SUCCESS), name, failMsg, result, ESMF_SRCLINE)

call ESMF_InfoDestroy(info6, rc=rc)
if (rc /= ESMF_SUCCESS) call ESMF_Finalize(endflag=ESMF_END_ABORT)
!----------------------------------------------------------------------------

!----------------------------------------------------------------------------
!NEX_UTest
write(name, *) "ESMF_InfoRemove Child From Parent"
Expand Down

0 comments on commit 7deaaec

Please sign in to comment.