Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-4
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

+2-1
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)