After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 792245 - the wixl command return code is 0 for parse errors
the wixl command return code is 0 for parse errors
Status: RESOLVED FIXED
Product: msitools
Classification: Other
Component: wixl
0.95
Other Linux
: Normal normal
: 1.0
Assigned To: msitools maintainer(s)
msitools maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2018-01-05 15:29 UTC by Kim
Modified: 2020-11-17 11:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kim 2018-01-05 15:29:12 UTC
Overview: 

The return code for the wixl command is 0 when encountering an parse error

Steps to reproduce:

---
root@2ceb7867cb47:/opt/test# echo " " > test.wxs
root@2ceb7867cb47:/opt/test# wixl test.wxs
:1: parser error : Extra content at the end of the document

^
Entity: line 3: parser error : Extra content at the end of the document
error : xmlTextWriterWriteDocCallback : XML error 5 !
root@2ceb7867cb47:/opt/test# echo $?
0
root@2ceb7867cb47:/opt/test# wixl --version
0.95
root@2ceb7867cb47:/opt/test# ls -l
total 12
-rw-r--r-- 1 root root 7168 Jan  5 15:24 test.msi
-rw-r--r-- 1 root root    2 Jan  5 15:24 test.wxs
---

Expected result:

a non-zero return code