From fda99f3dd5c51cf6fdc414b52bf03c92c6d0e18e Mon Sep 17 00:00:00 2001 From: Dipin Hora Date: Mon, 7 Oct 2024 15:41:10 -0400 Subject: [PATCH] Make heap dependent finaliser test logic more precise --- test/full-program-tests/large-dependent-finalisers/main.pony | 4 ++-- test/full-program-tests/small-dependent-finalisers/main.pony | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/full-program-tests/large-dependent-finalisers/main.pony b/test/full-program-tests/large-dependent-finalisers/main.pony index 24c47658bd..ef96d00537 100644 --- a/test/full-program-tests/large-dependent-finalisers/main.pony +++ b/test/full-program-tests/large-dependent-finalisers/main.pony @@ -82,7 +82,7 @@ class _Final match other | None => None | let o: this->_Final => - if (num > 0) and (o.num > 0) then + if 1025 == (num + o.num) then @codegentest_large_dependent_finalisers_decrement_num_objects() end end @@ -90,6 +90,6 @@ class _Final actor Main new create(env: Env) => let f1 = _Final(1) - let f2 = _Final(2) + let f2 = _Final(1024) f1.other = f2 f2.other = f1 diff --git a/test/full-program-tests/small-dependent-finalisers/main.pony b/test/full-program-tests/small-dependent-finalisers/main.pony index a856d11e52..8606b15240 100644 --- a/test/full-program-tests/small-dependent-finalisers/main.pony +++ b/test/full-program-tests/small-dependent-finalisers/main.pony @@ -13,7 +13,7 @@ class _Final match other | None => None | let o: this->_Final => - if (num > 0) and (o.num > 0) then + if 1025 == (num + o.num) then @codegentest_small_dependent_finalisers_decrement_num_objects() end end