msvcrt/tests: Fix 4 tests that always fail on Vista.
This commit is contained in:
parent
c5310eda8d
commit
e5ffcd8827
|
@ -301,6 +301,7 @@ static void test_exception(void)
|
||||||
|
|
||||||
/* Operator equals */
|
/* Operator equals */
|
||||||
memset(&e2, 0, sizeof(e2));
|
memset(&e2, 0, sizeof(e2));
|
||||||
|
call_func1(pexception_default_ctor, &e2);
|
||||||
pe = call_func2(pexception_opequals, &e2, &e);
|
pe = call_func2(pexception_opequals, &e2, &e);
|
||||||
ok(e2.vtable != NULL, "Null exception vtable for e2\n");
|
ok(e2.vtable != NULL, "Null exception vtable for e2\n");
|
||||||
ok(e2.name && e2.name != e.name && !strcmp(e2.name, "An exception name"), "Bad exception name for e2\n");
|
ok(e2.name && e2.name != e.name && !strcmp(e2.name, "An exception name"), "Bad exception name for e2\n");
|
||||||
|
@ -425,6 +426,7 @@ static void test_bad_typeid(void)
|
||||||
|
|
||||||
/* Operator equals */
|
/* Operator equals */
|
||||||
memset(&e2, 1, sizeof(e2));
|
memset(&e2, 1, sizeof(e2));
|
||||||
|
call_func1(pexception_default_ctor, &e2);
|
||||||
pe = call_func2(pbad_typeid_opequals, &e2, &e);
|
pe = call_func2(pbad_typeid_opequals, &e2, &e);
|
||||||
ok(e2.vtable != NULL, "Null bad_typeid vtable for e2\n");
|
ok(e2.vtable != NULL, "Null bad_typeid vtable for e2\n");
|
||||||
ok(e2.name && e2.name != e.name && !strcmp(e2.name, "A bad_typeid name"), "Bad bad_typeid name for e2\n");
|
ok(e2.name && e2.name != e.name && !strcmp(e2.name, "A bad_typeid name"), "Bad bad_typeid name for e2\n");
|
||||||
|
@ -552,6 +554,7 @@ static void test_bad_cast(void)
|
||||||
|
|
||||||
/* Operator equals */
|
/* Operator equals */
|
||||||
memset(&e2, 1, sizeof(e2));
|
memset(&e2, 1, sizeof(e2));
|
||||||
|
call_func1(pexception_default_ctor, &e2);
|
||||||
pe = call_func2(pbad_cast_opequals, &e2, &e);
|
pe = call_func2(pbad_cast_opequals, &e2, &e);
|
||||||
ok(e2.vtable != NULL, "Null bad_cast vtable for e2\n");
|
ok(e2.vtable != NULL, "Null bad_cast vtable for e2\n");
|
||||||
ok(e2.name && e2.name != e.name && !strcmp(e2.name, "A bad_cast name"), "Bad bad_cast name for e2\n");
|
ok(e2.name && e2.name != e.name && !strcmp(e2.name, "A bad_cast name"), "Bad bad_cast name for e2\n");
|
||||||
|
@ -653,6 +656,7 @@ static void test___non_rtti_object(void)
|
||||||
|
|
||||||
/* Operator equals */
|
/* Operator equals */
|
||||||
memset(&e2, 1, sizeof(e2));
|
memset(&e2, 1, sizeof(e2));
|
||||||
|
call_func1(pexception_default_ctor, &e2);
|
||||||
pe = call_func2(p__non_rtti_object_opequals, &e2, &e);
|
pe = call_func2(p__non_rtti_object_opequals, &e2, &e);
|
||||||
ok(e2.vtable != NULL, "Null __non_rtti_object vtable for e2\n");
|
ok(e2.vtable != NULL, "Null __non_rtti_object vtable for e2\n");
|
||||||
ok(e2.name && e2.name != e.name && !strcmp(e2.name, "A __non_rtti_object name"), "Bad __non_rtti_object name for e2\n");
|
ok(e2.name && e2.name != e.name && !strcmp(e2.name, "A __non_rtti_object name"), "Bad __non_rtti_object name for e2\n");
|
||||||
|
|
Loading…
Reference in New Issue