From: Arran Cudbard-Bell Date: Tue, 21 Nov 2017 14:50:29 +0000 (+0000) Subject: Add a test for yielding within a parallel section X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea17805dc01a321e1e9bd8381d4cb828b0785a82;p=thirdparty%2Ffreeradius-server.git Add a test for yielding within a parallel section --- diff --git a/src/tests/keywords/parallel-yield b/src/tests/keywords/parallel-yield new file mode 100644 index 00000000000..505ca82b1ca --- /dev/null +++ b/src/tests/keywords/parallel-yield @@ -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