]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add a test for yielding within a parallel section
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 21 Nov 2017 14:50:29 +0000 (14:50 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 21 Nov 2017 14:50:29 +0000 (14:50 +0000)
src/tests/keywords/parallel-yield [new file with mode: 0644]

diff --git a/src/tests/keywords/parallel-yield b/src/tests/keywords/parallel-yield
new file mode 100644 (file)
index 0000000..505ca82
--- /dev/null
@@ -0,0 +1,17 @@
+#
+#  PRE: parallel
+#
+
+# Ensure if one module yields, the rest execute
+parallel {
+       delay
+       update request {
+               Tmp-String-0 := 'foo'
+       }
+}
+
+if (&Tmp-String-0 != 'foo') {
+       test_fail
+}
+
+success