Repository navigation
Fix the MinGW tests - #119
afbjorklund wants to merge 8 commits into
Conversation
| return false; | ||
| } | ||
|
|
||
| #if defined (__MINGW32__) && (__MINGW32_MAJOR_VERSION < 5) |
There was a problem hiding this comment.
Perhaps fix (i.e., move #if ... to) create_tmp_file instead?
There was a problem hiding this comment.
Possibly. The whole thing is rather sad, really. Not as sad as printf, but sad.
There was a problem hiding this comment.
I don't want to merge it as is; we should try to keep #ifdefs in utility functions only.
|
It seems like |
|
Also |
ad8b595 to
aaa6fbc
Compare
| size_hint = (size_hint < 1024) ? 1024 : size_hint; | ||
|
|
||
| int fd = open(path, O_RDONLY | O_BINARY); | ||
| int fd = open(path, O_RDONLY | (binary ? O_BINARY : O_TEXT)); |
There was a problem hiding this comment.
Looks like binary is always passed as false, so perhaps just hardcode O_TEXT instead?
Also, why do the mingw tests need O_TEXT instead of O_BINARY?
Apparently older versions of MinGW have a broken mkstemp... https://sourceforge.net/p/mingw-w64/bugs/471/ (O_TEMPORARY)
Before it was always reading in binary mode, which broke some test cases on Windows/MinGW.
The test framework needs to unset the GCC_COLORS environment variable, to avoid confusing argument processing tests with "-fdiagnostics-color".
The old 32-bit environment has bugs and doesn't support C99 well. Use new 64-bit environment (and "wine1.6-amd64" for running .exe)
|
Rebased, but didn't change anything |
The MinGW target had some test failures, mostly due to Travis only compiling but not running them...
Was tested with MinGW and Wine:
./configure --host=i686-w64-mingw32 && make quicktest