From: Francois Gouget fgouget@codeweavers.com
IE may create a network session for its own purposes, thus changing the session count while we are testing it.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54866 --- dlls/ieframe/tests/webbrowser.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/dlls/ieframe/tests/webbrowser.c b/dlls/ieframe/tests/webbrowser.c index 15ce0272654..adb43f481f6 100644 --- a/dlls/ieframe/tests/webbrowser.c +++ b/dlls/ieframe/tests/webbrowser.c @@ -4436,20 +4436,24 @@ static void test_SetQueryNetSessionCount(void) { LONG count, init_count;
- init_count = pSetQueryNetSessionCount(SESSION_QUERY); - trace("init_count %ld\n", init_count); + /* IE may create a network session for its own purposes during the test */ + LOOP_ON_FLAKY_WINDOWS_TESTS(3) + { + init_count = pSetQueryNetSessionCount(SESSION_QUERY); + trace("init_count %ld\n", init_count);
- count = pSetQueryNetSessionCount(SESSION_INCREMENT); - ok(count == init_count + 1, "count = %ld\n", count); + count = pSetQueryNetSessionCount(SESSION_INCREMENT); + tryok(count == init_count + 1, "count = %ld\n", count);
- count = pSetQueryNetSessionCount(SESSION_QUERY); - ok(count == init_count + 1, "count = %ld\n", count); + count = pSetQueryNetSessionCount(SESSION_QUERY); + tryok(count == init_count + 1, "count = %ld\n", count);
- count = pSetQueryNetSessionCount(SESSION_DECREMENT); - ok(count == init_count, "count = %ld\n", count); + count = pSetQueryNetSessionCount(SESSION_DECREMENT); + tryok(count == init_count, "count = %ld\n", count);
- count = pSetQueryNetSessionCount(SESSION_QUERY); - ok(count == init_count, "count = %ld\n", count); + count = pSetQueryNetSessionCount(SESSION_QUERY); + tryok(count == init_count, "count = %ld\n", count); + } }
static HRESULT WINAPI outer_QueryInterface(IUnknown *iface, REFIID riid, void **ppv)