Author: mnordell
Date: Fri Aug 31 14:16:17 2012
New Revision: 57207
URL:
http://svn.reactos.org/svn/reactos?rev=57207&view=rev
Log:
Stop erroneous reporting of SEGV from test case. MS own CRT SEGV on NULL format string
Modified:
trunk/rostests/apitests/crt/_vscprintf.c
trunk/rostests/apitests/crt/_vscwprintf.c
Modified: trunk/rostests/apitests/crt/_vscprintf.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/crt/_vscprintf.c…
==============================================================================
--- trunk/rostests/apitests/crt/_vscprintf.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/crt/_vscprintf.c [iso-8859-1] Fri Aug 31 14:16:17 2012
@@ -25,7 +25,6 @@
call_varargs(12, "%S world!", L"hello");
call_varargs(12, "%s world!", "hello");
call_varargs(11, "%u cookies", 100);
- /* Test NULL argument */
- call_varargs(-1, NULL);
- ok(errno == EINVAL, "Expected EINVAL, got %u\n", errno);
+ /* Do not test NULL argument. That is verified to SEGV on a */
+ /* release-build with VC10 and MS' msvcrt. */
}
Modified: trunk/rostests/apitests/crt/_vscwprintf.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/crt/_vscwprintf.…
==============================================================================
--- trunk/rostests/apitests/crt/_vscwprintf.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/crt/_vscwprintf.c [iso-8859-1] Fri Aug 31 14:16:17 2012
@@ -25,10 +25,6 @@
call_varargs(19, L"%s world!", "hello");
call_varargs(12, L"%s world!", L"hello");
call_varargs(17, L"Jack ate %u pies", 100);
-
- /* Test NULL argument */
- call_varargs(-1, NULL);
-#if defined(TEST_MSVCRT) /* NTDLL doesn't use/set errno */
- ok(errno == EINVAL, "Expected EINVAL, got %u\n", errno);
-#endif
+ /* Do not test NULL argument. That is verified to SEGV on a */
+ /* release-build with VC10 and MS' msvcrt. */
}