test: fix test-spawn on MinGW32

PR-URL: https://github.com/libuv/libuv/pull/161
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Luis Martinez de Bartolome 2015-01-23 22:40:42 +01:00 committed by Saúl Ibarra Corretgé
parent 2bfa2e5e22
commit 60b581fb5a

View File

@ -988,7 +988,8 @@ TEST_IMPL(environment_creation) {
} }
} }
if (prev) { /* verify sort order -- requires Vista */ if (prev) { /* verify sort order -- requires Vista */
#if _WIN32_WINNT >= 0x0600 #if _WIN32_WINNT >= 0x0600 && \
(!defined(__MINGW32__) || defined(__MINGW64_VERSION_MAJOR))
ASSERT(CompareStringOrdinal(prev, -1, str, -1, TRUE) == 1); ASSERT(CompareStringOrdinal(prev, -1, str, -1, TRUE) == 1);
#endif #endif
} }