diff options
author | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2016-11-24 12:56:37 +0100 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2016-11-24 12:58:29 +0100 |
commit | c1395714ab954e16856721178aa2ec677c8ad830 (patch) | |
tree | 921093ca044a53dc0dd4d2ddaa426c7d22f81dea /test | |
parent | 0e1cd284c9c37e912d1a4ba73eb3c8ea4851e166 (diff) |
Testsuite: fix minor warning in runtest
Diffstat (limited to 'test')
-rwxr-xr-x | test/runtest | 2 | ||||
-rw-r--r-- | test/t/00-basic.t | 1 | ||||
-rw-r--r-- | test/t/samples/empty/.dir | 0 |
3 files changed, 2 insertions, 1 deletions
diff --git a/test/runtest b/test/runtest index 4483ec95b..fbe30e910 100755 --- a/test/runtest +++ b/test/runtest @@ -50,7 +50,7 @@ my $cf = 'bin/cf -exact'; my $cr = "\r"; my $debug = 0; my $flavour = do { - my $f = Exim::Runtest::flavour(); + my $f = Exim::Runtest::flavour() // ''; (grep { $f eq $_ } Exim::Runtest::flavours()) ? $f : 'FOO'; }; my $force_continue = 0; diff --git a/test/t/00-basic.t b/test/t/00-basic.t index 092591e44..0612a20af 100644 --- a/test/t/00-basic.t +++ b/test/t/00-basic.t @@ -44,6 +44,7 @@ subtest 'flavour' => sub { is flavour('t/samples/debian8+debian-version/etc'), 'debian8' => 'got flavour debian8 from debian_version'; is flavour('t/samples/debian.sid/etc'), 'debian' => 'got flavour debian from debian sid w/o VERSION_ID'; is flavour('t/samples/fedora24/etc'), 'fedora24' => 'got flavour fedora24 from os-release'; + is flavour('t/samples/empty'), undef() => 'got empty flavour (undef)'; is_deeply [flavours()], ['debian8'] => 'got available flavours'; }; diff --git a/test/t/samples/empty/.dir b/test/t/samples/empty/.dir new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/test/t/samples/empty/.dir |