Commit e4300a35 authored by Tom Lane's avatar Tom Lane

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 1731e374.
parent 1731e374
...@@ -78,10 +78,8 @@ INFO: $VAR1 = '1'; ...@@ -78,10 +78,8 @@ INFO: $VAR1 = '1';
1 1
(1 row) (1 row)
SELECT roundtrip('1E+131071'); -- skip because Data::Dumper produces a platform-dependent spelling of infinity
INFO: $VAR1 = 'inf'; -- SELECT roundtrip('1E+131071');
ERROR: cannot convert infinity to jsonb
CONTEXT: PL/Perl function "roundtrip"
SELECT roundtrip('-1'); SELECT roundtrip('-1');
INFO: $VAR1 = '-1'; INFO: $VAR1 = '-1';
roundtrip roundtrip
......
...@@ -61,7 +61,8 @@ $$; ...@@ -61,7 +61,8 @@ $$;
SELECT roundtrip('null') is null; SELECT roundtrip('null') is null;
SELECT roundtrip('1'); SELECT roundtrip('1');
SELECT roundtrip('1E+131071'); -- skip because Data::Dumper produces a platform-dependent spelling of infinity
-- SELECT roundtrip('1E+131071');
SELECT roundtrip('-1'); SELECT roundtrip('-1');
SELECT roundtrip('1.2'); SELECT roundtrip('1.2');
SELECT roundtrip('-1.2'); SELECT roundtrip('-1.2');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment