diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b0c9d6a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +language: "perl" +perl: + - "5.20" + - "5.18" + - "5.16" + - "5.14" + - "5.12" + - "5.10" + - "5.8" +# comment line for testing diff --git a/t/env.t b/t/env.t index dfc7203..9cace52 100644 --- a/t/env.t +++ b/t/env.t @@ -20,6 +20,9 @@ $ENV{"m\xf6ney"} = "\x80uro"; is env("m\xf6ney", "\x{20AC}"), "\x{20AC}uro", 'env write retval encoded'; is env("m\xf6ney"), "\x{20AC}", 'env write worked'; is $ENV{"m\xf6ney"}, "\x80", 'env affected %ENV'; -is env("\x{20AC}", 1), undef, 'env write retval old value'; -is env("\x{20AC}"), 1, 'env write worked'; -is $ENV{"\x80"}, 1, 'env affected %ENV'; +SKIP: { + skip "Cygwin has trouble with these tests, so skipping", 3 if ($^O eq 'cygwin'); + is env("\x{20AC}", 1), undef, 'env write retval old value'; + is env("\x{20AC}"), 1, 'env write worked'; + is $ENV{"\x80"}, 1, 'env affected %ENV'; +}