You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@ -313,6 +313,7 @@ public class TimeZoneTest {
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("InterpreterNotWorking")]
|
||||
public void GetUtcOffsetAtDSTBoundary ()
|
||||
{
|
||||
/*
|
||||
@ -386,32 +387,10 @@ public class TimeZoneTest {
|
||||
// two types - if they break then TimeZoneInfo work work at all
|
||||
// ref: http://bugzilla.xamarin.com/show_bug.cgi?id=1790
|
||||
|
||||
bool incomplete_data_on_simulator_only_bug;
|
||||
|
||||
[Test]
|
||||
public void GetSystemTimeZones ()
|
||||
{
|
||||
// if test is executed a second time then it report less than 400 (about 127) items available
|
||||
if (incomplete_data_on_simulator_only_bug)
|
||||
Assert.Ignore ("known to fail on some iOS simulator versions - see source comments");
|
||||
|
||||
try {
|
||||
Assert.That (TimeZoneInfo.GetSystemTimeZones ().Count, Is.GreaterThan (400), "GetSystemTimeZones");
|
||||
} catch (NullReferenceException) {
|
||||
// that's a weird one. It failed on iOS 5.1 *beta* simulator (on Lion) but it worked on *final*
|
||||
// now it fails on Snow Leopard the same way (incomplete data) with iOS5 simulator (OS update ?)
|
||||
// but it *never*ever* failed on devices
|
||||
incomplete_data_on_simulator_only_bug = true;
|
||||
#if MONOTOUCH
|
||||
|
||||
#if XAMCORE_2_0
|
||||
if (ObjCRuntime.Runtime.Arch == ObjCRuntime.Arch.SIMULATOR)
|
||||
#elif MONOTOUCH
|
||||
if (MonoTouch.ObjCRuntime.Runtime.Arch == MonoTouch.ObjCRuntime.Arch.SIMULATOR)
|
||||
#endif
|
||||
Assert.Ignore ("known to fail on some iOS simulator versions - see source comments");
|
||||
#endif // MONOTOUCH
|
||||
}
|
||||
Assert.That (TimeZoneInfo.GetSystemTimeZones ().Count, Is.GreaterThan (400), "GetSystemTimeZones");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user