Module: wine Branch: master Commit: b9ea25721bd0b5166a944673067f8f2c8a122917 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9ea25721bd0b5166a94467306...
Author: Misha Koshelev mk144210@bcm.edu Date: Mon Jun 4 09:25:37 2007 -0500
msi/tests: suminfo: Add tests for MsiSummaryInfoGetProperty for unknown property values.
---
dlls/msi/tests/suminfo.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/msi/tests/suminfo.c b/dlls/msi/tests/suminfo.c index 3bcc125..fbd5081 100644 --- a/dlls/msi/tests/suminfo.c +++ b/dlls/msi/tests/suminfo.c @@ -99,6 +99,16 @@ static void test_suminfo(void) r = MsiSummaryInfoGetProperty(hsuminfo, 0, NULL, NULL, NULL, 0, NULL); ok(r == ERROR_SUCCESS, "getpropcount failed\n");
+ /* Page faults in wine */ + if (0) + { + r = MsiSummaryInfoGetProperty(hsuminfo, -1, NULL, NULL, NULL, 0, NULL); + ok(r == ERROR_UNKNOWN_PROPERTY, "MsiSummaryInfoGetProperty wrong error\n"); + + r = MsiSummaryInfoGetProperty(hsuminfo, PID_SECURITY+1, NULL, NULL, NULL, 0, NULL); + ok(r == ERROR_UNKNOWN_PROPERTY, "MsiSummaryInfoGetProperty wrong error\n"); + } + type = -1; r = MsiSummaryInfoGetProperty(hsuminfo, 0, &type, NULL, NULL, 0, NULL); ok(r == ERROR_SUCCESS, "getpropcount failed\n");