From 6011d8236ee06dfea106c482aa711f08ba6231cd Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Tue, 26 Aug 2008 20:04:22 +0200
Subject: [PATCH] Testsuite: activated runtime tests for the include extension.

---
 tests/extensions/include/errors.svtest | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/tests/extensions/include/errors.svtest b/tests/extensions/include/errors.svtest
index 964e1f230..7c712317b 100644
--- a/tests/extensions/include/errors.svtest
+++ b/tests/extensions/include/errors.svtest
@@ -74,3 +74,21 @@ test "Variables" {
 		test_fail "wrong number of errors reported";
 	}
 }
+
+/*
+ * Runtime errors
+ */
+
+test "Import runtime" {
+	if not test_compile "errors/import-runtime.sieve" {
+		test_fail "compile failed";
+	}
+
+	if test_execute {
+		test_fail "execution should have failed";
+	}
+
+	if not test_error :count "eq" :comparator "i;ascii-numeric" "1" {
+		test_fail "wrong number of errors reported";
+	}
+}
-- 
GitLab