msi: Add Set/GetLastError to the property tests
Alexandre Julliard
julliard at winehq.org
Wed Aug 23 03:55:56 CDT 2006
"James Hawkins" <truiken at gmail.com> writes:
> @@ -2087,33 +2087,44 @@ static void test_getproperty(void)
> ok( hPackage != 0, " Failed to create package\n");
>
> /* set the property */
> + SetLastError(0xdeadbeef);
> r = MsiSetProperty(hPackage, "Name", "Value");
> ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
> + ok( GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %ld\n", GetLastError());
In general, testing that last error isn't set on success is not
useful, unless you really have an app that depends on it.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list