ingydotnet / boolean-pm

Boolean Type Support for Perl
7 stars 5 forks source link

json.t failed "You planned 3 tests but ran 0." #2

Closed lejeunerenard closed 10 years ago

lejeunerenard commented 10 years ago

On Debian 7.4 got the following error when attempting to install with cpanm

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/boolean.t ............. ok
t/export.t .............. ok
# No tests run!
t/json.t ................ 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/3 subtests 
t/release-pod-syntax.t .. skipped: these tests are for release candidate testing
t/truth.t ............... ok

Test Summary Report
-------------------
t/json.t              (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255 
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
Files=5, Tests=97,  0 wallclock secs ( 0.03 usr  0.02 sys +  0.08 cusr  0.05 csys =  0.18 CPU)
Result: FAIL
Failed 1/5 test programs. 0/97 subtests failed.
make: *** [test_dynamic] Error 255
frioux commented 10 years ago

Cannot repro, please give details. (closing w/o details)

lejeunerenard commented 10 years ago

Errors from prove -lrv t/json.t after cpanm --look boolean

t/json.t .. 
1..3
# No tests run!
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/3 subtests 

Test Summary Report
-------------------
t/json.t (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 3 tests but ran 0.
Files=1, Tests=0,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.02 cusr  0.00 csys =  0.05 CPU)
Result: FAIL
lejeunerenard commented 10 years ago

Getting the following error when running perl -MCarp::Always -Ilib t/json.t and removing the eval in the SKIP:

Modification of a read-only value attempted at t/json.t line 8

Line 8:

is($json->encode({false => (0 == 1)}), '{"false":false}', 'JSON false works');
lejeunerenard commented 10 years ago

Based on this gist probably a JSON::XS & Readonly Issue. I do have both installed. Will reopen if necessary.