From 98ec9399c4ac33b84b6ff88338722e83f379d427 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Mon, 28 Aug 2006 07:41:55 -0700 Subject: [PATCH] msi/tests: Add test to verify we can create 4000 msi handles. --- dlls/msi/tests/db.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index 781c6a56ff9..0a5b230052d 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -1356,6 +1356,49 @@ static void test_markers(void) DeleteFileA(msifile); } +#define MY_NVIEWS 4000 /* Largest installer I've seen uses < 2k */ +static void test_handle_limit(void) +{ + int i; + MSIHANDLE hdb; + MSIHANDLE hviews[MY_NVIEWS]; + UINT r; + + /* create an empty db */ + hdb = create_db(); + ok( hdb, "failed to create db\n"); + + memset(hviews, 0, sizeof(hviews)); + + for (i=0; i