-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Simon Josefsson on 12/27/2009 3:06 AM: > I got this error when cross-compiling to MinGW: > > ../../../src/libidn-1.16/gltests/test-symlink.c:43: assertion failed > FAIL: test-symlink.exe > > The reason is use of a system call. I changed it into a shell script > wrapper instead. OK to push?
Not as is. It would be much nicer to figure out why the system call is failing for you; it works for me when I cross compile from cygwin to mingw. And there are a lot more tests than just test-symlink.c that used the same idiom. They would all need the same fix. Does system() work at all in your environment, even for simple tasks like an echo (which should be a builtin, regardless of whether system() uses sh or cmd)? If so, then maybe your problem is locating and running rm once the system call is started. One thing that I would be more comfortable with is just weakening those system() calls to no longer be wrapped in an ASSERT - if it fails for a cross compile to mingw, that's no big loss, provided the test passes normally and leaves no garbage. That line is really meant for cleanup from previous partial runs, to make it easier to debug failures. But now that most of the failures for mingw have been debugged, there shouldn't (normally) be anything to clean up. I really don't see a reason to add a shell script wrapper just for this special case. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAks3d5cACgkQ84KuGfSFAYBoBACbBs2T8e9nGl6RDESSqVtWXDEE e7cAn3hR7CNMnG4+Jrrc+AnfQMHJ9afi =e971 -----END PGP SIGNATURE-----