[master] 917773a Test multiple -f options with an empty value

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Feb 23 17:13:05 CET 2017


commit 917773a3e8d0589cc03c2135edbaf27c0fed167f
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Thu Feb 23 17:06:48 2017 +0100

    Test multiple -f options with an empty value
    
    A case probably overlooked in d306f91 and something that needs some
    pondering.

diff --git a/bin/varnishtest/tests/a00009.vtc b/bin/varnishtest/tests/a00009.vtc
index 4aef8e1..5016cef 100644
--- a/bin/varnishtest/tests/a00009.vtc
+++ b/bin/varnishtest/tests/a00009.vtc
@@ -103,3 +103,16 @@ shell -err {
 	exec varnishd -n ${tmpdir}/v0 -F -a :0 -l2m,3m -f ${tmpdir}/ok1 \
 	    -f ${tmpdir}/bad -f ${tmpdir}/ok2
 }
+
+# Test multiple -f options with an empty value
+# XXX: two conflicting features, probably not what we want
+
+process p3 {
+	exec varnishd -n ${tmpdir}/v0 -F -a :0 -l2m,3m -f ${tmpdir}/ok1 \
+	    -f '' -f ${tmpdir}/ok2
+} -log -start
+
+delay 1
+shell -match "stopped" {varnishadm -n ${tmpdir}/v0 status}
+
+process p3 -stop -wait



More information about the varnish-commit mailing list