From 3bb5106159ad42edd7a2ead9c588b1ea581cf347 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 18 Oct 2015 13:13:44 +0000 Subject: [PATCH] [URLMON_WINETEST] - Cancel the test if a failure situation is detected that will lead to a timeout ROSTESTS-192 CORE-10360 svn path=/trunk/; revision=69599 --- rostests/winetests/urlmon/protocol.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rostests/winetests/urlmon/protocol.c b/rostests/winetests/urlmon/protocol.c index 85d93687d3e..20b21f04bd8 100644 --- a/rostests/winetests/urlmon/protocol.c +++ b/rostests/winetests/urlmon/protocol.c @@ -1084,6 +1084,12 @@ static HRESULT WINAPI ProtocolSink_ReportResult(IInternetProtocolSink *iface, HR else ok(hrResult == expect_hrResult, "hrResult = %08x, expected: %08x\n", hrResult, expect_hrResult); +#ifdef __REACTOS__ + if(!winetest_interactive && tested_protocol != FTP_TEST && hrResult != expect_hrResult) { + skip("CORE-10360/ROSTESTS-192: Test might hang, skipping the rest!\n"); + exit(1); + } +#endif if(SUCCEEDED(hrResult) || tested_protocol == FTP_TEST || test_abort) ok(dwError == ERROR_SUCCESS, "dwError = %d, expected ERROR_SUCCESS\n", dwError); else