summaryrefslogtreecommitdiff
path: root/t/01conf03.t
blob: 87444d84e51e25d16bc0be3c1912d250bec87dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- perl -*-
use lib qw(t lib);
use strict;
use Test;
use TestConfig;

plan(tests => 1);

my %keywords = (
    core => {
	section => {
	    'tempdir' => 1,
	    'verbose' => 1,
	}
    },
    backend => {
	section => {
	    file => 1
	}
    }
);
my $cfg = new TestConfig(
    config => [
	'core.tempdir' => '/tmp',
	'core.output' => 'file'
    ],
    lexicon => \%keywords,
    expect => [ 'keyword "output" is unknown' ]);
ok($cfg->errors() == 1);

Return to:

Send suggestions and report system problems to the System administrator.