tests: do not ignore stderr of vty_test, also match it

This change is needed for I4e27d6e89d3f851b5ea4f00da01e7093afa537b2.

Change-Id: Ia601ecd2e69aeb6669e0e2e5dd60135a751611e7
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7a0b4b1..2d0cf93 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -315,7 +315,7 @@
              loggingrb/logging_test.err	strrb/strrb_test.ok		\
              codec/codec_test.ok \
              codec/codec_ecu_fr_test.ok \
-	     vty/vty_test.ok \
+	     vty/vty_test.ok vty/vty_test.err \
 	     vty/fail_not_de-indented.cfg \
 	     vty/fail_tabs_and_spaces.cfg \
 	     vty/fail_too_much_indent.cfg \
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 493c16f..8b6a20a 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -204,8 +204,9 @@
 AT_SETUP([vty])
 AT_KEYWORDS([vty])
 cat $abs_srcdir/vty/vty_test.ok > expout
+cat $abs_srcdir/vty/vty_test.err > experr
 cp $abs_srcdir/vty/*.cfg .
-AT_CHECK([$abs_top_builddir/tests/vty/vty_test], [0], [expout], [ignore])
+AT_CHECK([$abs_top_builddir/tests/vty/vty_test], [0], [expout], [experr])
 AT_CLEANUP
 
 AT_SETUP([gprs-bssgp])
diff --git a/tests/vty/vty_test.err b/tests/vty/vty_test.err
new file mode 100644
index 0000000..8ad4fd9
--- /dev/null
+++ b/tests/vty/vty_test.err
@@ -0,0 +1,61 @@
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 1
+Got VTY event: 3
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 1
+Got VTY event: 2
+Got VTY event: 3
+There is no such command.
+Error occurred during reading the below line:
+ level1 b
+
+Inconsistent indentation -- leading whitespace must match adjacent lines, and
+indentation must reflect child node levels. A mix of tabs and spaces is
+allowed, but their sequence must not change within a child block.
+Error occurred during reading the below line:
+ level1 b
+
+Inconsistent indentation -- leading whitespace must match adjacent lines, and
+indentation must reflect child node levels. A mix of tabs and spaces is
+allowed, but their sequence must not change within a child block.
+Error occurred during reading the below line:
+	 	child1 b
+
+Error occurred during reading the below line:
+return-warning
+
+% Ignoring deprecated 'logging level depr (debug|info|notice|error|fatal)'
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 1
+Got VTY event: 3
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 2
+Got VTY event: 1
+Got VTY event: 3