From dd4e002b5c4410e742bf8812972aae661bc90639 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 8 May 2021 03:38:56 +0300 Subject: [PATCH] Adjust a test after relaxed overflow checks --- tests/queries/0_stateless/01666_lcm_ubsan.reference | 6 ++++-- tests/queries/0_stateless/01666_lcm_ubsan.sql | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/queries/0_stateless/01666_lcm_ubsan.reference b/tests/queries/0_stateless/01666_lcm_ubsan.reference index d8ed13191d3..bd1972e8a6d 100644 --- a/tests/queries/0_stateless/01666_lcm_ubsan.reference +++ b/tests/queries/0_stateless/01666_lcm_ubsan.reference @@ -5,8 +5,10 @@ SELECT lcm(-9223372036854775808, 9223372036854775807); -- { serverError 407 } SELECT lcm(-9223372036854775807, 9223372036854775808); -- { serverError 407 } SELECT lcm(9223372036854775808, -1); -- { serverError 407 } SELECT lcm(-170141183460469231731687303715884105728, -170141183460469231731687303715884105728); -- { serverError 43 } -SELECT lcm(toInt128(-170141183460469231731687303715884105728), toInt128(-170141183460469231731687303715884105728)); -- { serverError 407 } -SELECT lcm(toInt128(-170141183460469231731687303715884105720), toInt128(-170141183460469231731687303715884105720)); -- { serverError 407 } +SELECT lcm(toInt128(-170141183460469231731687303715884105728), toInt128(-170141183460469231731687303715884105728)); +170141183460469231722463931679029329921 +SELECT lcm(toInt128(-170141183460469231731687303715884105720), toInt128(-170141183460469231731687303715884105720)); +170141183460469231722463931679029329921 SELECT lcm(toInt128('-170141183460469231731687303715884105720'), toInt128('-170141183460469231731687303715884105720')); 170141183460469231731687303715884105720 SELECT lcm(-9223372036854775806, -9223372036854775806); diff --git a/tests/queries/0_stateless/01666_lcm_ubsan.sql b/tests/queries/0_stateless/01666_lcm_ubsan.sql index b3b869c80ed..8ebdf148a65 100644 --- a/tests/queries/0_stateless/01666_lcm_ubsan.sql +++ b/tests/queries/0_stateless/01666_lcm_ubsan.sql @@ -5,7 +5,7 @@ SELECT lcm(-9223372036854775808, 9223372036854775807); -- { serverError 407 } SELECT lcm(-9223372036854775807, 9223372036854775808); -- { serverError 407 } SELECT lcm(9223372036854775808, -1); -- { serverError 407 } SELECT lcm(-170141183460469231731687303715884105728, -170141183460469231731687303715884105728); -- { serverError 43 } -SELECT lcm(toInt128(-170141183460469231731687303715884105728), toInt128(-170141183460469231731687303715884105728)); -- { serverError 407 } -SELECT lcm(toInt128(-170141183460469231731687303715884105720), toInt128(-170141183460469231731687303715884105720)); -- { serverError 407 } +SELECT lcm(toInt128(-170141183460469231731687303715884105728), toInt128(-170141183460469231731687303715884105728)); +SELECT lcm(toInt128(-170141183460469231731687303715884105720), toInt128(-170141183460469231731687303715884105720)); SELECT lcm(toInt128('-170141183460469231731687303715884105720'), toInt128('-170141183460469231731687303715884105720')); SELECT lcm(-9223372036854775806, -9223372036854775806);