blob: ff145963b11f8f76b4c9181cbb69922caf68b7c1 (
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
30
31
32
|
# -*- perl -*-
use lib 't';
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(parameters => \%keywords,
locations => 1,
expect => [ 'keyword "output" is unknown' ]);
ok($cfg->errors() == 1);
__DATA__
# This is a sample configuration file
[core]
tempdir = /tmp
output = file
|