-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from AsherGlick/missing_name_segfault
Missing "name" segfault fix
- Loading branch information
Showing
6 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
xml_converter/integration_tests/test_cases/category_name_invalid/input/pack/xml_file.xml
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,4 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Missing Category" /> | ||
<MarkerCategory DisplayName="My Empty Category" Name="" /> | ||
</OverlayData> |
Empty file.
10 changes: 10 additions & 0 deletions
10
xml_converter/integration_tests/test_cases/category_name_invalid/output_xml/xml_file.xml
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,10 @@ | ||
<OverlayData> | ||
<MarkerCategory DisplayName="My Missing Category"> | ||
</MarkerCategory> | ||
|
||
<MarkerCategory DisplayName="My Empty Category" Name=""> | ||
</MarkerCategory> | ||
|
||
<POIs> | ||
</POIs> | ||
</OverlayData> |
13 changes: 13 additions & 0 deletions
13
xml_converter/integration_tests/test_cases/category_name_invalid/testcase.yaml
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,13 @@ | ||
input_paths: | ||
"pack": "xml" | ||
expected_stdout: | | ||
Error: Category attribute 'name' is missing or is an empty string when it should be a non-empty string | ||
test_cases/category_name_invalid/input/pack/xml_file.xml | ||
2 | <MarkerCategory DisplayName="My Missing Category" /> | ||
| ^^^^^^^^^^^^^^ | ||
Error: Category attribute 'name' is missing or is an empty string when it should be a non-empty string | ||
test_cases/category_name_invalid/input/pack/xml_file.xml | ||
3 | <MarkerCategory DisplayName="My Empty Category" Name="" /> | ||
| ^^^^^^^^^^^^^^ | ||
expected_stderr: | | ||
expected_returncode: 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
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