Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeit() tests fail if Time::HiRes is not installed #12

Open
leto opened this issue Feb 18, 2016 · 0 comments
Open

timeit() tests fail if Time::HiRes is not installed #12

leto opened this issue Feb 18, 2016 · 0 comments

Comments

@leto
Copy link

leto commented Feb 18, 2016

At a quick glance, it seems that the code beginning on https://github.com/Ovid/test--most/blob/master/lib/Test/Most.pm#L180 should avoid line 188 but currently it does not.

--> Working on Test::Most
Fetching http://www.cpan.org/authors/id/O/OV/OVID/Test-Most-0.34.tar.gz
-> OK
Unpacking Test-Most-0.34.tar.gz
Entering Test-Most-0.34
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.10)
Configuring Test-Most-0.34
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Test::Most
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Exception::Class 1.14 ... Yes (1.40)
Checking if you have Test::Harness 3.21 ... Yes (3.36)
Checking if you have Test::More 0.88 ... Yes (1.001014)
Checking if you have Test::Differences 0.61 ... Yes (0.64)
Checking if you have Test::Exception 0.31 ... Yes (0.43)
Checking if you have Test::Warn 0.23 ... Yes (0.30)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.10)
Checking if you have Test::Deep 0.106 ... Yes (1.120)
Building and testing Test-Most-0.34
cp lib/Test/Most/Exception.pm blib/lib/Test/Most/Exception.pm
cp lib/Test/Most.pm blib/lib/Test/Most.pm
Manifying 2 pod documents
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
# Testing Test::Most 0.34, Perl 5.010001, /usr/bin/perl
#     Exception::Class version is 1.40
#     Test::Deep version is 1.120
#     Test::Differences version is 0.64
#     Test::Exception version is 0.43
#     Test::Harness version is 3.36
#     Test::More version is 1.001014
#     Test::Warn version is 0.30
t/00-load.t ..................... ok
t/bug_duplicate_plan.t .......... ok
t/common.t ...................... ok
t/defer_plan.t .................. ok
t/env_bail.t .................... ok
t/env_die.t ..................... ok
t/exception.t ................... ok
t/exclude_test_modules.t ........ ok
t/exclude_test_symbols.t ........ ok
Data::Dumper::Names 0.03 not found.  Use explain() instead of show() at t/explain.t line 34.
Data::Dumper::Names 0.03 not found.  Use explain() instead of show() at t/explain.t line 69.
t/explain.t ..................... ok
t/function_bail.t ............... ok
t/function_die.t ................ ok
t/import_bail.t ................. ok
t/import_die.t .................. ok
t/import_strict_and_warnings.t .. ok
# timeit: Time::HiRes not installed
Undefined subroutine &Time::HiRes::gettimeofday called at lib/Test/Most.pm line 188.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 2.
t/timex.t .......................
Dubious, test returned 255 (wstat 65280, 0xff00)
All 2 subtests passed

Test Summary Report
-------------------
t/timex.t                     (Wstat: 65280 Tests: 2 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
Files=16, Tests=87,  1 wallclock secs ( 0.07 usr  0.02 sys +  1.10 cusr  0.10 csys =  1.29 CPU)
Result: FAIL
Failed 1/16 test programs. 0/87 subtests failed.
make: *** [test_dynamic] Error 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant