]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test419: verify --dump-header to file that cannot be created
authorDaniel Stenberg <daniel@haxx.se>
Mon, 20 Feb 2023 22:19:06 +0000 (23:19 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Feb 2023 09:35:17 +0000 (10:35 +0100)
Closes #10571

tests/data/Makefile.inc
tests/data/test419 [new file with mode: 0644]

index 97fdabcfa08566f4c4aac90a6fdd821f55b36dea..0190eaa681f01cd51885ce03f2ebfa5bd4f75412 100644 (file)
@@ -68,7 +68,7 @@ test380 test381 test383 test384 test385 test386 test387 test388 test389 \
 test390 test391 test392 test393 test394 test395 test396 test397 test398 \
 test399 test400 test401 test402 test403 test404 test405 test406 test407 \
 test408 test409 test410 test411 test412 test413 test414 test415 test416 \
-test417 test418 \
+test417 test418 test419 \
 \
 test430 test431 test432 test433 test434 test435 test436 \
 \
diff --git a/tests/data/test419 b/tests/data/test419
new file mode 100644 (file)
index 0000000..35e1259
--- /dev/null
@@ -0,0 +1,35 @@
+<testcase>
+<info>
+<keywords>
+--dump-header
+failure
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+http
+</server>
+ <name>
+--dump-header to file that cannot be created
+ </name>
+ <command>
+http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D loggg/save-here/fails
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+23
+</errorcode>
+</verify>
+</testcase>