Increase default pipe buffer size on VMS to 8192 on 64-bit systems.
[p5sagit/p5-mst-13.2.git] / cpan / Parse-CPAN-Meta / t / 21_bom.t
CommitLineData
de044c36 1#!/usr/bin/perl
2
3BEGIN {
4 if( $ENV{PERL_CORE} ) {
5 chdir 't';
6 @INC = ('../lib', 'lib');
7 }
8 else {
9 unshift @INC, 't/lib/';
10 }
11}
12
13use strict;
14BEGIN {
15 $| = 1;
16 $^W = 1;
17}
18
19use File::Spec::Functions ':ALL';
20use Parse::CPAN::Meta::Test;
21use Test::More tests(0, 1, 3);
22
23
24
25
26
27#####################################################################
28# Testing that Perl::Smith config files work
29
30my $sample_file = catfile( test_data_directory(), 'utf_16_le_bom.yml' );
31my $sample = load_ok( 'utf_16_le_bom.yml', $sample_file, 3 );
32
33# Does the string parse to the structure
34my $name = "utf-16";
35my $yaml_copy = $sample;
36my $yaml = eval { Parse::CPAN::Meta::Load( $yaml_copy ); };
37is( $yaml_copy, $sample, "$name: Parse::CPAN::Meta::Load does not modify the input string" );
38is( $yaml, undef, "file not parsed" );
39ok( $@ =~ "Stream has a non UTF-8 Unicode Byte Order Mark", "correct error" );