aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-02-23 14:09:51 -0400
committerJoey Hess <joey@kitenet.net>2014-02-23 14:09:51 -0400
commitc5d63c549de267dfc5de44f60b619f576e57023d (patch)
tree41f3b5d1023e8143324caffaebbbbf0cfadb762b /t
parent7e1b8c4f9c69b5f9bd9096129f2ad961b97a1022 (diff)
parent2a143bfd0be3f286249a19304bb908e3b0d63cc1 (diff)
downloadikiwiki-c5d63c549de267dfc5de44f60b619f576e57023d.tar
ikiwiki-c5d63c549de267dfc5de44f60b619f576e57023d.tar.gz
Merge remote-tracking branch 'anarcat/dev/syslog_utf8'
Diffstat (limited to 't')
-rw-r--r--t/syslog.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/syslog.t b/t/syslog.t
new file mode 100644
index 000000000..ffe8635b3
--- /dev/null
+++ b/t/syslog.t
@@ -0,0 +1,18 @@
+#!/usr/bin/perl
+use warnings;
+use strict;
+use Test::More tests => 5;
+use utf8;
+
+BEGIN { use_ok("IkiWiki"); }
+
+$IkiWiki::config{verbose} = 1;
+$IkiWiki::config{syslog} = 1;
+
+$IkiWiki::config{wikiname} = 'ASCII';
+is(debug('test'), '', 'plain ASCII syslog');
+$IkiWiki::config{wikiname} = 'not â’¶SCII';
+is(debug('test'), '', 'UTF8 syslog');
+my $orig = $IkiWiki::config{wikiname};
+is(debug('test'), '', 'check for idempotency');
+is($IkiWiki::config{wikiname}, $orig, 'unchanged config');