aboutsummaryrefslogtreecommitdiff
path: root/tests/error.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/error.at')
-rw-r--r--tests/error.at32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/error.at b/tests/error.at
new file mode 100644
index 0000000..af2c34c
--- /dev/null
+++ b/tests/error.at
@@ -0,0 +1,32 @@
+# This file is part of grecs -*- Autotest -*-
+# Copyright (C) 2014-2022 Sergey Poznyakoff
+#
+# Grecs is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Grecs is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Grecs. If not, see <http://www.gnu.org/licenses/>.
+
+AT_SETUP([#error])
+AT_KEYWORDS([diag error])
+
+AT_CHECK([
+AT_DATA([test.cf],[before 1;
+#error "everything is FOOBAR"
+after 1;
+])
+gcffmt test.cf
+],
+[1],
+[],
+[test.cf:2.1-30: everything is FOOBAR
+])
+
+AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.