-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure we start off with null() temp vstrings
See issue #31. This should avoid the reported crash, but the tests I've tried don't trip the segfault. But anyway, add two tests for sax with double parsing.
- Loading branch information
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
program test_sax_reader | ||
|
||
use FoX_sax | ||
type(xml_t) :: xp | ||
integer :: iostat | ||
|
||
! Can we parse the same file twice? | ||
|
||
call open_xml_file(xp, "test_sax_fsm_1.in", iostat) | ||
|
||
write(*,'(i1)') iostat | ||
|
||
call parse(xp) | ||
|
||
call close_xml_t(xp) | ||
|
||
call open_xml_file(xp, "test_sax_fsm_1.in", iostat) | ||
|
||
write(*,'(i1)') iostat | ||
|
||
call parse(xp) | ||
|
||
call close_xml_t(xp) | ||
end program test_sax_reader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
0 | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
program test_sax_reader | ||
|
||
use FoX_sax | ||
type(xml_t) :: xp | ||
integer :: iostat | ||
|
||
! Can we parse the same file twice? | ||
|
||
call open_xml_file(xp, "testin.xml", iostat) | ||
|
||
write(*,'(i1)') iostat | ||
|
||
call parse(xp) | ||
|
||
call parse(xp) | ||
|
||
call close_xml_t(xp) | ||
end program test_sax_reader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |