Bas-Man's Musings
  • Home
  • Categories
    Series Categories Tags
  • Projects
    GitHub Line Notification
  • Docs
    Bind DNS Setup Gmail & Zapier
  • References
    Python Perl Rust Git LaTeX
  • Snippets
    Python Perl Rust Git C++ Routers General
  • About

exclude


Prevent CPAN-Testers from testing under certain OS

 Posted on December 14, 2020  |  1 minutes  |  30 words  |  Bas-Man

Add the following code to the BEGIN block in 00-load.t testing file.

BEGIN {
    if ($^O eq 'MSWin32') {
      BAIL_OUT("OS unsupported");
    };
    use_ok( 'File::TVShow::Organize' ) || print "Bail out!\n";
}
cpan  module  perl  exclude  os  test  testing 

Bas-Man  • © 2020 - 2021  •  Bas-Man's Musings

Hugo v0.93.2 powered  •  Theme Beautiful Hugo adapted from Beautiful Jekyll

Privacy | Contact

By using this site, you agree to our use of cookies. We use cookies on this website to give you the best experience on our site. To find out more, read our privacy policy.