summaryrefslogtreecommitdiff
path: root/t/conf03.t
diff options
context:
space:
mode:
Diffstat (limited to 't/conf03.t')
-rw-r--r--t/conf03.t29
1 files changed, 29 insertions, 0 deletions
diff --git a/t/conf03.t b/t/conf03.t
new file mode 100644
index 0000000..b887995
--- /dev/null
+++ b/t/conf03.t
@@ -0,0 +1,29 @@
1# -*- perl -*-
2use lib qw(t lib);
3use strict;
4use Test;
5use TestConfig;
6
7plan(tests => 1);
8
9my %keywords = (
10 core => {
11 section => {
12 'tempdir' => 1,
13 'verbose' => 1,
14 }
15 },
16 backend => {
17 section => {
18 file => 1
19 }
20 }
21);
22my $cfg = new TestConfig(
23 config => [
24 'core.tempdir' => '/tmp',
25 'core.output' => 'file'
26 ],
27 parameters => \%keywords,
28 expect => [ 'keyword "output" is unknown' ]);
29ok($cfg->errors() == 1);

Return to:

Send suggestions and report system problems to the System administrator.