From ede943e36001280c5b5487bb6395a3a992e9fb4a Mon Sep 17 00:00:00 2001 From: Koundinya Veluri Date: Wed, 9 Aug 2017 15:32:58 -0700 Subject: [PATCH] Increase timeout and log the result for a couple of WaitAny tests that expect AbandonedMutexException --- .../baseservices/threading/waithandle/waitany/waitanyex2.cs | 4 ++-- .../baseservices/threading/waithandle/waitany/waitanyex2a.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex2.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex2.cs index aa27c0eea19b..e09e5455b131 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex2.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex2.cs @@ -36,8 +36,8 @@ private int Run() { Console.WriteLine("Waiting..."); int i = WaitHandle.WaitAny( - new WaitHandle[]{myMutex, myMRE}, 5000); - Console.WriteLine("WaitAny did not throw AbandonedMutexException"); + new WaitHandle[]{myMutex, myMRE}, 30000); + Console.WriteLine("WaitAny did not throw AbandonedMutexException. Result: {0}", i); } catch(AbandonedMutexException) { diff --git a/tests/src/baseservices/threading/waithandle/waitany/waitanyex2a.cs b/tests/src/baseservices/threading/waithandle/waitany/waitanyex2a.cs index bbd2b018c65a..da9115f01e8d 100644 --- a/tests/src/baseservices/threading/waithandle/waitany/waitanyex2a.cs +++ b/tests/src/baseservices/threading/waithandle/waitany/waitanyex2a.cs @@ -37,7 +37,7 @@ private int Run() Console.WriteLine("Waiting..."); int i = WaitHandle.WaitAny( new WaitHandle[]{myMutex, myMRE}); - Console.WriteLine("WaitAny did not throw AbandonedMutexException"); + Console.WriteLine("WaitAny did not throw AbandonedMutexException. Result: {0}", i); } catch(AbandonedMutexException) {