Gijs Vermeulen : wbemprox/tests: Add a test for Win32_PhysicalMemory.ConfiguredClockSpeed.

Alexandre Julliard julliard at winehq.org
Mon Jul 27 16:35:15 CDT 2020


Module: wine
Branch: master
Commit: 25853da03e0d79348de280fd7621fe7ff8c8785d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=25853da03e0d79348de280fd7621fe7ff8c8785d

Author: Gijs Vermeulen <gijsvrm at gmail.com>
Date:   Fri Jul 17 17:33:11 2020 +0200

wbemprox/tests: Add a test for Win32_PhysicalMemory.ConfiguredClockSpeed.

Signed-off-by: Gijs Vermeulen <gijsvrm at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wbemprox/tests/query.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/dlls/wbemprox/tests/query.c b/dlls/wbemprox/tests/query.c
index 0fa091b739..73740f18c8 100644
--- a/dlls/wbemprox/tests/query.c
+++ b/dlls/wbemprox/tests/query.c
@@ -1168,6 +1168,17 @@ static void test_Win32_PhysicalMemory( IWbemServices *services )
         check_property( obj, L"FormFactor", VT_I4, CIM_UINT16 );
         check_property( obj, L"MemoryType", VT_I4, CIM_UINT16 );
 
+        type = 0xdeadbeef;
+        VariantInit( &val );
+        hr = IWbemClassObject_Get( obj, L"ConfiguredClockSpeed", 0, &val, &type, NULL );
+        ok( hr == S_OK || broken(hr == WBEM_E_NOT_FOUND) /* < win10 */, "got %08x\n", hr );
+        if (hr == S_OK)
+        {
+            ok( V_VT( &val ) == VT_I4, "unexpected variant type 0x%x\n", V_VT( &val ) );
+            ok( type == CIM_UINT32, "unexpected type 0x%x\n", type );
+            trace( "ConfiguredClockSpeed %u\n", V_I4( &val ) );
+        }
+
         type = 0xdeadbeef;
         VariantInit( &val );
         hr = IWbemClassObject_Get( obj, L"PartNumber", 0, &val, &type, NULL );




More information about the wine-cvs mailing list