crt: testcases: Skip t_aligned_alloc.c on msvcrt10.dll and msvcrt20.dll These two libraries have broken _msize() function. Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/testcases/t_aligned_alloc.c b/mingw-w64-crt/testcases/t_aligned_alloc.c index 875d563..f9f1ebf 100644 --- a/mingw-w64-crt/testcases/t_aligned_alloc.c +++ b/mingw-w64-crt/testcases/t_aligned_alloc.c
@@ -48,6 +48,11 @@ * So it means that also mingw-w64 _aligned_msize function (wrapper around _msize) * returns wrong value when using those two CRT libraries. */ +#if __MSVCRT_VERSION__ >= 0x100 && __MSVCRT_VERSION__ <= 0x200 + return 0; +#endif + + ptr = malloc(231); assert(ptr != NULL); size = _msize(ptr);