summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/runtest2
-rw-r--r--test/t/00-basic.t1
-rw-r--r--test/t/samples/empty/.dir0
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