Bug 41530

Summary: [iOS]TimerTest failing randomly on devices,
Product: iOS Reporter: GouriKumari <gouri.kumari>
Component: BCL Class LibrariesAssignee: Alexander Köplinger [MSFT] <alkpli>
Severity: normal CC: kumpera, masafa, mono-bugs+monotouch
Priority: Normal    
Version: XI 9.8 (tvOS / C7)   
Target Milestone: C7SR1   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description GouriKumari 2016-06-06 15:05:39 UTC

Comment 1 GouriKumari 2016-06-06 15:18:53 UTC
## Steps to reproduce:

Install Xamarin.iOS Cycle7 build mtouch (cycle7: 39ebb77).
Execute System unified tests on 32  bit devices

## Actual Behaviour: 
[FAIL] TimerTest.EnabledInElapsed :   #1 loss of events
  Expected: True
  But was:  False

## Supplemental Info:
This issue is seen in iPad2 devices.

## Logs:
Test Log: 

## Build Log: 

##Test Env:
mtouch (cycle7: 39ebb77).
This is a random failure observed only on 32 bit device. Both were on IPv6 network.
Comment 2 GouriKumari 2016-06-06 16:38:10 UTC
Changing the milestone to Cycle7SR1, since the test passed in Cycle6 and is randomly failing in Cycle7. 

Both iPads are iPad2, model number: A1395, dual core.
Comment 3 Alexander Köplinger [MSFT] 2016-06-08 11:02:37 UTC
Fixed in master/4.5.1 by https://github.com/mono/mono/pull/3122.

Trello card for getting this into C7SR1: https://trello.com/c/h3Q3i4A8/7-xi-mono-fix-flaky-timertest-enabledinelapsed
Comment 4 GouriKumari 2016-06-30 21:35:56 UTC
Verified with Xamarin.iOS master build  Xamarin.iOSVersion: (Xamarin Business) Hash: 81a8e7a, locally on device.

Test did pass on device. Will verify once this change is added to C7 trunk.

## Logs:
Test Log: https://gist.github.com/GouriKumari/e36fc53f7acb3a7e0b646b9c8f62ed16
Build Log: https://gist.github.com/GouriKumari/d5d29e43aee0bd92b6757aa6649f1ef3
Test Env: https://gist.github.com/GouriKumari/0009baa8ee1130dae1849458dbbc352e
Comment 5 GouriKumari 2016-07-05 20:08:34 UTC
Verified with Cycle7 build  mtouch (cycle7: 9ae33ac) and timer test did pass on the device.

## Logs:
Test Log: https://gist.github.com/GouriKumari/92dd00f03e0577e8676b0d2ce28930b3
Build Log: https://gist.github.com/GouriKumari/871c79a145df7818509b5162544e3104
Test Env: https://gist.github.com/GouriKumari/c6adbcdbf01bc34cd329fbbb0fc00cc3

iPad2 6.0.1