TARGET_JVM: return flow to the version before revision 80469
[mono.git] / mcs / class / System / Test / System.Configuration / SettingsBaseTest.cs
index cba19b160e40c31a3c86371dbd543d6e4210039f..40939e9ef2dbae39be595d9620c651c91318fade 100644 (file)
@@ -44,6 +44,9 @@ namespace MonoTests.System.Configuration
        [TestFixture]
        public class SettingsBaseTest
        {
+#if TARGET_JVM
+               class CustomerException : Exception     { }
+#endif
                class MySettings : SettingsBase
                {
                        [UserScopedSetting] // ignored in non-ApplicationSettingsBase
@@ -232,7 +235,11 @@ namespace MonoTests.System.Configuration
                        try {
                                Assert.AreEqual (100, s.Foo, "#1");
                                Assert.Fail ("#2");
+#if !TARGET_JVM
                        } catch (Win32Exception) {
+#else
+                       } catch (CustomerException) {
+#endif
                        }
                }
 
@@ -257,7 +264,11 @@ namespace MonoTests.System.Configuration
                {
                        public override SettingsPropertyValueCollection GetPropertyValues (SettingsContext context, SettingsPropertyCollection props)
                        {
+#if !TARGET_JVM
                                throw new Win32Exception (); // unlikely thrown otherwise.
+#else
+                               throw new CustomerException (); // unlikely thrown otherwise.
+#endif
                        }
                }