diff --git a/Tests/Cosmos.Compiler.Tests.Bcl/System/Int32Test.cs b/Tests/Cosmos.Compiler.Tests.Bcl/System/Int32Test.cs index c576b17ec..29cf1ce5e 100644 --- a/Tests/Cosmos.Compiler.Tests.Bcl/System/Int32Test.cs +++ b/Tests/Cosmos.Compiler.Tests.Bcl/System/Int32Test.cs @@ -151,7 +151,7 @@ namespace Cosmos.Compiler.Tests.Bcl.System { val3o += 2147483647; } - catch (StackOverflowException e) + catch (OverflowException e) { efuse = true; } @@ -163,7 +163,7 @@ namespace Cosmos.Compiler.Tests.Bcl.System { val3o -= 2147483647; } - catch (StackOverflowException e) + catch (OverflowException e) { efuse = true; } diff --git a/Tests/Cosmos.Compiler.Tests.Bcl/System/Int64Test.cs b/Tests/Cosmos.Compiler.Tests.Bcl/System/Int64Test.cs index 3d663f22e..02c811903 100644 --- a/Tests/Cosmos.Compiler.Tests.Bcl/System/Int64Test.cs +++ b/Tests/Cosmos.Compiler.Tests.Bcl/System/Int64Test.cs @@ -157,7 +157,7 @@ namespace Cosmos.Compiler.Tests.Bcl.System { val3o += long.MaxValue; } - catch (StackOverflowException e) + catch (OverflowException e) { efuse = true; } @@ -169,7 +169,7 @@ namespace Cosmos.Compiler.Tests.Bcl.System { val3o -= long.MaxValue; } - catch (StackOverflowException e) + catch (OverflowException e) { efuse = true; }