File: 09-noyaml.t

package info (click to toggle)
libscriptalicious-perl 1.15-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 180 kB
  • ctags: 70
  • sloc: perl: 1,150; makefile: 16
file content (19 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- perl -*-

use lib "t/missing";
use Test::More tests => 2;

use_ok( 'Scriptalicious', -progname => "noyaml" );

{
local(*STDERR);
open STDERR, ">/dev/null";
getconf_f
    ("t/eg.conf",
     ( "something|s" => \$foo,
     )
    );
}

is($foo, undef, 
   "didn't load config without YAML (and didn't die)");