Author: akhaldi
Date: Wed Apr 15 18:10:02 2015
New Revision: 67205
URL:
http://svn.reactos.org/svn/reactos?rev=67205&view=rev
Log:
[OLEAUT32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
Modified:
trunk/rostests/winetests/oleaut32/typelib.c
trunk/rostests/winetests/oleaut32/vartest.c
trunk/rostests/winetests/oleaut32/vartype.c
Modified: trunk/rostests/winetests/oleaut32/typelib.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/oleaut32/typeli…
==============================================================================
--- trunk/rostests/winetests/oleaut32/typelib.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/oleaut32/typelib.c [iso-8859-1] Wed Apr 15 18:10:02 2015
@@ -5600,7 +5600,7 @@
ok(hr == S_OK, "got: %x\n", hr);
hr = ITypeInfo_GetRefTypeInfo(ptInfo, refType, &ptInfoExt);
- todo_wine ok(hr == S_OK || broken(hr == TYPE_E_CANTLOADLIBRARY) /* win 2000 */,
"got: %x\n", hr);
+ ok(hr == S_OK || broken(hr == TYPE_E_CANTLOADLIBRARY) /* win 2000 */, "got:
%x\n", hr);
ITypeInfo_Release(ptInfo);
if(ptInfoExt)
Modified: trunk/rostests/winetests/oleaut32/vartest.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/oleaut32/vartes…
==============================================================================
--- trunk/rostests/winetests/oleaut32/vartest.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/oleaut32/vartest.c [iso-8859-1] Wed Apr 15 18:10:02 2015
@@ -299,16 +299,14 @@
HRESULT res;
res = VarBstrFromBool(VARIANT_TRUE, LANG_USER_DEFAULT, VAR_LOCALBOOL, &bstr);
- ok(res == S_OK && (lstrlenW(bstr) > 0),
- "Expected localized string for 'True'\n");
+ ok(res == S_OK && bstr[0], "Expected localized string for
'True'\n");
/* lstrcpyW / lstrcatW do not work on win95 */
memcpy(sz12_true, sz12, sizeof(sz12));
if (bstr) memcpy(&sz12_true[2], bstr, SysStringByteLen(bstr) + sizeof(WCHAR));
SysFreeString(bstr);
res = VarBstrFromBool(VARIANT_FALSE, LANG_USER_DEFAULT, VAR_LOCALBOOL, &bstr);
- ok(res == S_OK && (lstrlenW(bstr) > 0),
- "Expected localized string for 'False'\n");
+ ok(res == S_OK && bstr[0], "Expected localized string for
'False'\n");
memcpy(sz12_false, sz12, sizeof(sz12));
if (bstr) memcpy(&sz12_false[2], bstr, SysStringByteLen(bstr) + sizeof(WCHAR));
SysFreeString(bstr);
@@ -335,12 +333,6 @@
dec->Hi32 = hi32;
S1(U1(*dec)).Mid32 = mid32;
S1(U1(*dec)).Lo32 = lo32;
-}
-
-static inline int strcmpW( const WCHAR *str1, const WCHAR *str2 )
-{
- while (*str1 && (*str1 == *str2)) { str1++; str2++; }
- return *str1 - *str2;
}
/* return the string text of a given variant type */
@@ -1395,11 +1387,11 @@
/* VB oct char bigger than 7 */
CONVERT("&o128", NUMPRS_HEX_OCT);
-/*
- Native versions 2.x of oleaut32 allow this to succeed: later versions and Wine
don't
- EXPECTFAIL;
- EXPECTRGB(0,FAILDIG);
-*/
+ EXPECT(2,NUMPRS_HEX_OCT,0x40,4,3,0);
+ EXPECTRGB(0,1);
+ EXPECTRGB(1,2);
+ EXPECTRGB(3,FAILDIG);
+
/** NUMPRS_PARENS **/
/* Empty parens = error */
@@ -6063,7 +6055,6 @@
else if (leftvt == VT_I4 || rightvt == VT_I4 ||
leftvt == VT_UINT || rightvt == VT_UINT ||
leftvt == VT_INT || rightvt == VT_INT ||
- leftvt == VT_UINT || rightvt == VT_UINT ||
leftvt == VT_R4 || rightvt == VT_R4 ||
leftvt == VT_R8 || rightvt == VT_R8 ||
leftvt == VT_CY || rightvt == VT_CY ||
@@ -7407,10 +7398,10 @@
hres = pVarPow(&cy, &right, &result);
if (hres == S_OK)
{
- ok(hres == S_OK && V_VT(&result) == VT_R8,
+ ok(V_VT(&result) == VT_R8,
"VARPOW: expected coerced hres 0x%X type VT_R8, got hres 0x%X type
%s!\n",
S_OK, hres, vtstr(V_VT(&result)));
- ok(hres == S_OK && EQ_DOUBLE(V_R8(&result), 4.0),
+ ok(EQ_DOUBLE(V_R8(&result), 4.0),
"VARPOW: CY value %f, expected %f\n", V_R8(&result), 4.0);
}
else
@@ -7444,10 +7435,10 @@
hres = pVarPow(&dec, &right, &result);
if (hres == S_OK)
{
- ok(hres == S_OK && V_VT(&result) == VT_R8,
+ ok(V_VT(&result) == VT_R8,
"VARPOW: expected coerced hres 0x%X type VT_R8, got hres 0x%X type
%s!\n",
S_OK, hres, vtstr(V_VT(&result)));
- ok(hres == S_OK && EQ_DOUBLE(V_R8(&result), 4.0),
+ ok(EQ_DOUBLE(V_R8(&result), 4.0),
"VARPOW: DECIMAL value %f, expected %f\n", V_R8(&result), 4.0);
}
else
Modified: trunk/rostests/winetests/oleaut32/vartype.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/oleaut32/vartyp…
==============================================================================
--- trunk/rostests/winetests/oleaut32/vartype.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/oleaut32/vartype.c [iso-8859-1] Wed Apr 15 18:10:02 2015
@@ -6463,7 +6463,7 @@
ok(hr == S_OK, "got 0x%08x\n", hr);
ok(testcopy.bstr == NULL, "got %p\n", testcopy.bstr);
- /* now destination contains inteface pointer */
+ /* now the destination contains the interface pointer */
memset(&testcopy, 0, sizeof(testcopy));
testcopy.disp = &dispatch.IDispatch_iface;
dispatch.ref = 10;