
Hi Gennadiy ! An'n Montag 05 Mai 2008 hett Gennadiy Rozental schreven:
Juergen Hunold wrote:
I've copied the content of your test into unit_test_example_01.cpp. My local run with msvc produces different output (I've added 2>err.xml 1>out.xml).
[..]
So, some observations: Obviously, the UTF succeds in catching the "assert". The resulting message is not in the XML-Log
It is. You need to split stdout from stderr. Leading message in stderr is unfortunate. I don't believe I can fix it easily
Oops, my fault :-(( I should have thought about stderr/stdout issues.
The return code is 0 (Success).
Not in my expirience.
Well, using msvc everything works as expected. I'm normally using Linux/gcc and was surprised when my tests ran on Linux and failed using msvc...
We need to figure out why you have zero result code first.
Any ideas where I should start looking ? I've got: gcc -v Using built-in specs. Target: x86_64-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.2.3 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.2 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=x86_64-suse-linux Thread model: posix gcc version 4.2.3 20071030 (prerelease) (SUSE Linux) and cc-4.3 -v Using built-in specs. Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.3 --enable-version-specific-runtime-libs --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux Thread model: posix gcc version 4.3.1 20080425 (prerelease) [gcc-4_3-branch revision 134659] (SUSE Linux) as well as gcc-4.2 on Kubuntu Hardy returning "Success" for an assert...
I think the caught assertions should lead to a non-zero exit code and a failing test suite.
And it would be nice if they got properly XML-formatted (but after a quick scan through the source, this seems difficult...)
It seems to be well formed for the most part.
Well, forget this one :-)) I think the current output is sufficient for me. It would be nice to add some linebreaks, though. Yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold@ivembh.de ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !