From a0355e28553d74dc017e5b212c65f1845ed3bbfd Mon Sep 17 00:00:00 2001 From: Christof Thalhofer Date: Sat, 14 Jan 2023 01:37:29 +0100 Subject: [PATCH] Fix Gambas3 Selftest GambasSelftests.IntegerOverflowsUnsafe Never program with too much beer ... forgot to test IntegerOverflowsUnsafe with JIT enabled --- .../.src/Tests/GambasSelftests.test | 14 +++++++------- app/src/gambas3-selftest/.test | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/gambas3-selftest/.src/Tests/GambasSelftests.test b/app/src/gambas3-selftest/.src/Tests/GambasSelftests.test index d4414c0fc..cc198b784 100644 --- a/app/src/gambas3-selftest/.src/Tests/GambasSelftests.test +++ b/app/src/gambas3-selftest/.src/Tests/GambasSelftests.test @@ -2385,27 +2385,27 @@ Fast Unsafe Public Sub IntegerOverflowsUnsafe() Test.Note("Short Unsafe Overflow") s = HighestShort + 1 - Assert.Ok(s) + Assert.Noterror() Test.Note("Integer Unsafe Overflow") i = HighestInteger + 1 - Assert.Ok(i) + Assert.Noterror() Test.Note("Long Unsafe Overflow") l = HighestLong + 1 - Assert.Ok(l) - + Assert.Noterror() + Test.Note("Short Unsafe Underflow") s = LowestShort - 1 - Assert.Ok(s) + Assert.Noterror() Test.Note("Integer Unsafe Underflow") i = LowestInteger - 1 - Assert.Ok(i) + Assert.Noterror() Test.Note("Long Unsafe Underflow") l = LowestLong - 1 - Assert.Ok(l) + Assert.Noterror() Else Test.Note("Jit disabled") diff --git a/app/src/gambas3-selftest/.test b/app/src/gambas3-selftest/.test index 1dd2fb8fe..4e4f00f5b 100644 --- a/app/src/gambas3-selftest/.test +++ b/app/src/gambas3-selftest/.test @@ -1,7 +1,7 @@ [TestSuites] Count=4 -TestWith=1 -Default="GambasSelftests.IntegerOverflows" +TestWith=0 +Default="GambasSelftests.IntegerOverflows;IntegerOverflowsUnsafe" [TestSuites/1] Name="Fast"