summaryrefslogtreecommitdiff
path: root/test/50-efa.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-06 18:09:27 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-06 18:09:27 +0200
commitaa5098642d7e55d5a9fa83998457d788b71798c0 (patch)
tree0f6d273ca573bb09df47389d58542b1454243870 /test/50-efa.t
parent05b9609ce1269d7b0457187e20f47ce42af0265c (diff)
Detect non-itinerary efa.vrr.de output (i.e. upon invalid input data)
Diffstat (limited to 'test/50-efa.t')
-rw-r--r--test/50-efa.t10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/50-efa.t b/test/50-efa.t
index 067b70b..ef97fb9 100644
--- a/test/50-efa.t
+++ b/test/50-efa.t
@@ -3,7 +3,7 @@ use strict;
use warnings;
use 5.010;
-use Test::Command tests => 82;
+use Test::Command tests => 85;
my $efa = 'bin/efa';
my $testarg = "E HBf MH HBf";
@@ -152,3 +152,11 @@ $cmd = Test::Command->new(
$cmd->exit_is_num(2);
$cmd->stdout_is_file('test/parse_no_connections');
$cmd->stderr_is_eq($EMPTY);
+
+$cmd = Test::Command->new(
+ cmd => "$efa $test_parse < test/dump_invalid_input"
+);
+
+$cmd->exit_is_num(3);
+$cmd->stdout_is_file('test/parse_invalid_input');
+$cmd->stderr_is_eq($EMPTY);