-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML test failure output broken using legacy assertions ([(] should be [-853413863] but was [8096]
)
#291
Comments
[(] should be [-853413863] but was [8096]
)[(] should be [-853413863] but was [8096]
)
Thanks for reporting this! Not to say that this should not be fixed, if possible, but if you use the modern, and recommended, assertions:
Then the XML-file seems to be generated as expected. I'm unsure why this happens, but I'd recommend not using the legacy assertions. Testing is focused on the modern API since many years. |
[(] should be [-853413863] but was [8096]
)[(] should be [-853413863] but was [8096]
)
Ah, didn't notice that there are different generations. I just used the first thing that looked like a googletest assertion. |
XML output from a simple test with one OK and one broken results in XML files where output seems to be badly formatted. Jenkins JUnit plugin fails to parse the XML output below.
This is the unit test ut.c, compiled with
gcc -o ut ut.c -I../cgreen/include -L$(pwd)/cgreen/src -lcgreen
Resulting XML files are
There is a faulty line feed near the end of the 5th line, and it should probably look more like the text output:
Built on Debian using
gcc (Debian 11.2.0-16) 11.2.0
and Cgreen 1.4.1 from source.The text was updated successfully, but these errors were encountered: