~ubuntu-branches/ubuntu/wily/libconfig-auto-perl/wily

« 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 22:10:30 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20120207221030-gxbqq7x9zp0q6ts4
Tags: 0.42-1
* Imported Upstream version 0.42
* Drop test-file-for-06_const_it.t-test.patch patch.
  This is not needed anymore as upstream has added a testfile to test
  against.

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();