~ubuntu-branches/ubuntu/utopic/libconfig-auto-perl/utopic-proposed

« back to all changes in this revision

Viewing changes to .pc/test-file-for-06_const_it.t-test.patch/t/06_const_it.t

  • Committer: Package Import Robot
  • Author(s): Salvatore Bonaccorso
  • Date: 2012-02-07 14:21:28 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120207142128-15d4nsm6wtvldjnt
Tags: 0.40-1
* Imported Upstream version 0.40
* Update copyright years for debian/* packaging
* Add test-file-for-06_const_it.t-test.patch patch.
  Change test file to a file which should be available even in buildd
  chroots (/etc/dpkg/dpkg.cfg).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!perl
 
2
 
 
3
use Test::More;
 
4
use strict;
 
5
 
 
6
use Config::Auto;
 
7
 
 
8
my $test_file = "/etc/fstab"; # A file found on any Unix/Linux machine.
 
9
 
 
10
SKIP: {
 
11
    skip "Can't test: $test_file doesn't exist on this system."
 
12
        unless -e $test_file;
 
13
 
 
14
    for ( 'bar' ) {
 
15
        eval { Config::Auto::parse($test_file); };
 
16
        ok( !$@,
 
17
            'Config::Auto:parse() where $_ aliases a string literal.' );
 
18
        diag($@) if $@;
 
19
    }
 
20
}
 
21
 
 
22
done_testing();