GNOME Bugzilla – Bug 662491
Test failure with clang
Last modified: 2011-10-24 17:44:18 UTC
Created attachment 199741 [details] [review] fix When compiled with clang, glib fails a test: Test failed: does not print assertion message FAIL: run-assert-msg-test.sh The test shouldn't fail. It assumes that an assertion failure leads to a message like [..]assert-msg-test.c:5:main: assertion failed: (42 < 0) since that is what gcc does. When clang is used, the full signature of main() is printed, though, thus "int main()" instead of just "main". I'm attaching a patch that relaxes the check a bit and makes it pass with clang.
Review of attachment 199741 [details] [review]: Sure, looks fine
The following fix has been pushed: 94a46ea Fix 'make check' with clang
Created attachment 199852 [details] [review] Fix 'make check' with clang Patch by Elias Pipping