Skip to content

Commit e4300a3

Browse files
committed
Avoid platform-dependent output from Data::Dumper.
Per buildfarm, the output from Data::Dumper for an IEEE infinity is platform-dependent (e.g. "inf" vs "Inf"). Just skip that one test case in the plperlu test; testing it on the plperl side is coverage enough. Fixes issue in commit 1731e37.
1 parent 1731e37 commit e4300a3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

contrib/jsonb_plperl/expected/jsonb_plperlu.out

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,8 @@ INFO: $VAR1 = '1';
7878
1
7979
(1 row)
8080

81-
SELECT roundtrip('1E+131071');
82-
INFO: $VAR1 = 'inf';
83-
ERROR: cannot convert infinity to jsonb
84-
CONTEXT: PL/Perl function "roundtrip"
81+
-- skip because Data::Dumper produces a platform-dependent spelling of infinity
82+
-- SELECT roundtrip('1E+131071');
8583
SELECT roundtrip('-1');
8684
INFO: $VAR1 = '-1';
8785
roundtrip

contrib/jsonb_plperl/sql/jsonb_plperlu.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ $$;
6161

6262
SELECT roundtrip('null') is null;
6363
SELECT roundtrip('1');
64-
SELECT roundtrip('1E+131071');
64+
-- skip because Data::Dumper produces a platform-dependent spelling of infinity
65+
-- SELECT roundtrip('1E+131071');
6566
SELECT roundtrip('-1');
6667
SELECT roundtrip('1.2');
6768
SELECT roundtrip('-1.2');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy