1
2BEGIN {
3  unless ($ENV{RELEASE_TESTING}) {
4    require Test::More;
5    Test::More::plan(skip_all => 'these tests are for release candidate testing');
6  }
7}
8
9use strict;
10use warnings;
11
12use Test::More;
13
14eval "use Test::Spelling";
15plan skip_all => "Test::Spelling required for testing POD coverage"
16    if $@;
17
18my @stopwords;
19for (<DATA>) {
20    chomp;
21    push @stopwords, $_
22        unless /\A (?: \# | \s* \z)/msx;    # skip comments, whitespace
23}
24
25add_stopwords(@stopwords);
26set_spell_cmd('aspell list -l en');
27
28# This prevents a weird segfault from the aspell command - see
29# https://bugs.launchpad.net/ubuntu/+source/aspell/+bug/71322
30local $ENV{LC_ALL} = 'C';
31all_pod_files_spelling_ok();
32
33__DATA__
34Measham
35POSIX
36STRPTIME
37errmsg
38formatter
39strf
40strp
41strptime
42