[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[COMMITED 1/2] testsuite: Extend maps-arrays-19.pk to test for E_eof
From: |
Darshit Shah |
Subject: |
[COMMITED 1/2] testsuite: Extend maps-arrays-19.pk to test for E_eof |
Date: |
Thu, 16 Jan 2020 01:48:32 +0100 |
---
ChangeLog | 2 ++
testsuite/poke.map/maps-arrays-19.pk | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 152c629c..f83ac276 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
2020-01-16 Darshit Shah <address@hidden>
* bootstrap.conf: Set --skip-po to be the default option.
+ * testsuite/poke.map/maps-arrays-19.pk: Extend test to ensure e_EOF is
+ thrown when reading through End-of-File.
2020-01-16 Jose E. Marchesi <address@hidden>
diff --git a/testsuite/poke.map/maps-arrays-19.pk
b/testsuite/poke.map/maps-arrays-19.pk
index af33ec25..e0aab82e 100644
--- a/testsuite/poke.map/maps-arrays-19.pk
+++ b/testsuite/poke.map/maps-arrays-19.pk
@@ -1,8 +1,8 @@
/* { dg-do run } */
/* { dg-data {c*} {0x02 0x20 0x30 0x40 0x66 0x6f 0x6f 0x00 0x62 0x61 0x72
0x73} } */
-/* { dg-command { string[1] @ 4#B } } */
-/* { dg-output "\\\[\"foo\"\\\]" */
+/* { dg-command { try string[2] @ 4#B; catch if E_eof { print "caught!\n"; } }
} */
+/* { dg-output "caught!" */
/* { dg-command { string[] @ 4#B } } */
/* { dg-output "\\\[\"foo\"\\\]" } */
--
2.25.0
- [COMMITED 1/2] testsuite: Extend maps-arrays-19.pk to test for E_eof,
Darshit Shah <=