Skip to content

Commit ccd9b00

Browse files
committed
make innodb_gis.gis, innodb_gis.1, main.gis tests more stable
and fix outdated comments
1 parent 6e1880b commit ccd9b00

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

mysql-test/main/gis.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ insert into t1 values ('85984',GeomFromText('MULTIPOLYGON(((-115.006363
371371

372372
# Expected results are 115.2970604672862 and 36.23335610879993, but IA64 returns
373373
# slightly different values due to fused multiply-add instructions.
374-
--replace_result 115.29706047613604 115.2970604672862 36.23335611157958 36.23335610879993
374+
--replace_regex /115.2970604[67]\d+/115.2970604672862/ /36.233356111579\d+/36.23335610879993/
375375
select object_id, geometrytype(geo), ISSIMPLE(GEO), ASTEXT(centroid(geo)) from
376376
t1 where object_id=85998;
377377

mysql-test/suite/innodb_gis/t/1.test

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,15 +375,15 @@ insert into t1 values ('85984',ST_GeomFromText('MULTIPOLYGON(((-115.006363
375375
36.248666,-115.263639 36.247466,-115.263839 36.252766,-115.261439
376376
36.252666,-115.261439 36.247366,-115.247239 36.247066)))'));
377377

378-
# Expected result is 115.31877315203187, but IA64 returns 115.31877315203188
379-
# due to fused multiply-add instructions.
380-
--replace_result 115.29706047613604 115.2970604672862 36.23335611157958 36.23335610879993
378+
# Expected results are 115.2970604672862 and 36.23335610879993, but IA64 returns
379+
# slightly different values due to fused multiply-add instructions.
380+
--replace_regex /115.2970604[67]\d+/115.2970604672862/ /36.233356111579\d+/36.23335610879993/
381381
select object_id, ST_geometrytype(geo), ST_ISSIMPLE(GEO), ST_ASTEXT(ST_centroid(geo)) from
382382
t1 where object_id=85998;
383383

384-
# Expected result is 36.3310176346905, but IA64 returns 36.3310176346904
384+
# Expected result is 36.34725218253213, but IA64 returns 36.34725217627852
385385
# due to fused multiply-add instructions.
386-
--replace_result 114.86854470090232 114.86854472054372 36.34725217627852 36.34725218253213
386+
--replace_result 36.34725217627852 36.34725218253213 -114.86854470090232 -114.86854472054372
387387
select object_id, ST_geometrytype(geo), ST_ISSIMPLE(GEO), ST_ASTEXT(ST_centroid(geo)) from
388388
t1 where object_id=85984;
389389

mysql-test/suite/innodb_gis/t/gis.test

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,15 +368,15 @@ insert into t1 values ('85984',ST_GeomFromText('MULTIPOLYGON(((-115.006363
368368
36.248666,-115.263639 36.247466,-115.263839 36.252766,-115.261439
369369
36.252666,-115.261439 36.247366,-115.247239 36.247066)))'));
370370

371-
# Expected result is 115.31877315203187, but IA64 returns 115.31877315203188
372-
# due to fused multiply-add instructions.
373-
--replace_result 115.29706047613604 115.2970604672862 36.23335611157958 36.23335610879993
371+
# Expected results are 115.2970604672862 and 36.23335610879993, but IA64 returns
372+
# slightly different values due to fused multiply-add instructions.
373+
--replace_regex /115.2970604[67]\d+/115.2970604672862/ /36.233356111579\d+/36.23335610879993/
374374
select object_id, ST_geometrytype(geo), ST_ISSIMPLE(GEO), ST_ASTEXT(ST_centroid(geo)) from
375375
t1 where object_id=85998;
376376

377-
# Expected result is 36.3310176346905, but IA64 returns 36.3310176346904
377+
# Expected result is 36.34725218253213, but IA64 returns 36.34725217627852
378378
# due to fused multiply-add instructions.
379-
--replace_result 114.86854470090232 114.86854472054372 36.34725217627852 36.34725218253213
379+
--replace_result 36.34725217627852 36.34725218253213 -114.86854470090232 -114.86854472054372
380380
select object_id, ST_geometrytype(geo), ST_ISSIMPLE(GEO), ST_ASTEXT(ST_centroid(geo)) from
381381
t1 where object_id=85984;
382382

0 commit comments

Comments
 (0)