| 1 | From: Carlos Henrique Lima Melara <[email protected]>
|
| 2 | Date: Fri, 1 May 2026 17:28:58 -0300
|
| 3 | Subject: tests: mark some additional tests uppercase-hex sensitive
|
| 4 |
|
| 5 | Since 8.20.0, three more tests started to fail because of the case used
|
| 6 | to represent hex digits.
|
| 7 |
|
| 8 | Bug: https://github.com/curl/trurl/issues/440
|
| 9 | Last-Update: 2026-05-01
|
| 10 | ---
|
| 11 | tests.json | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
| 12 | 1 file changed, 54 insertions(+)
|
| 13 |
|
| 14 | diff --git a/tests.json b/tests.json
|
| 15 | index 10b995a..3952e12 100644
|
| 16 | |
| 17 | |
| 18 | @@ -750,12 +750,29 @@
|
| 19 | "query=user=me"
|
| 20 | ]
|
| 21 | },
|
| 22 | + "excludes": ["uppercase-hex"],
|
| 23 | "expected": {
|
| 24 | "stdout": "https://curl.se/hello?user%3dme\n",
|
| 25 | "stderr": "",
|
| 26 | "returncode": 0
|
| 27 | }
|
| 28 | },
|
| 29 | + {
|
| 30 | + "input": {
|
| 31 | + "arguments": [
|
| 32 | + "--url",
|
| 33 | + "https://curl.se/hello",
|
| 34 | + "--set",
|
| 35 | + "query=user=me"
|
| 36 | + ]
|
| 37 | + },
|
| 38 | + "required": ["uppercase-hex"],
|
| 39 | + "expected": {
|
| 40 | + "stdout": "https://curl.se/hello?user%3Dme\n",
|
| 41 | + "stderr": "",
|
| 42 | + "returncode": 0
|
| 43 | + }
|
| 44 | + },
|
| 45 | {
|
| 46 | "input": {
|
| 47 | "arguments": [
|
| 48 | @@ -2137,12 +2154,33 @@
|
| 49 | "query:=a&b&a%26b"
|
| 50 | ]
|
| 51 | },
|
| 52 | + "excludes": ["uppercase-hex"],
|
| 53 | "expected": {
|
| 54 | "stdout": "http://localhost/ABC%5c%5c?a&b&a%26b\n",
|
| 55 | "returncode": 0,
|
| 56 | "stderr": ""
|
| 57 | }
|
| 58 | },
|
| 59 | + {
|
| 60 | + "input": {
|
| 61 | + "arguments": [
|
| 62 | + "-s",
|
| 63 | + "scheme:=http",
|
| 64 | + "-s",
|
| 65 | + "host:=localhost",
|
| 66 | + "-s",
|
| 67 | + "path:=/ABC%5C%5C",
|
| 68 | + "-s",
|
| 69 | + "query:=a&b&a%26b"
|
| 70 | + ]
|
| 71 | + },
|
| 72 | + "required": ["uppercase-hex"],
|
| 73 | + "expected": {
|
| 74 | + "stdout": "http://localhost/ABC%5C%5C?a&b&a%26b\n",
|
| 75 | + "returncode": 0,
|
| 76 | + "stderr": ""
|
| 77 | + }
|
| 78 | + },
|
| 79 | {
|
| 80 | "input": {
|
| 81 | "arguments": [
|
| 82 | @@ -2830,12 +2868,28 @@
|
| 83 | "path=%61"
|
| 84 | ]
|
| 85 | },
|
| 86 | + "excludes": ["uppercase-hex"],
|
| 87 | "expected": {
|
| 88 | "stdout": "https://example.com/one/tao/%2fB/%2561\n",
|
| 89 | "stderr": "",
|
| 90 | "returncode": 0
|
| 91 | }
|
| 92 | },
|
| 93 | + {
|
| 94 | + "input": {
|
| 95 | + "arguments": [
|
| 96 | + "https://example.com/one/t%61o/%2F%42/",
|
| 97 | + "--append",
|
| 98 | + "path=%61"
|
| 99 | + ]
|
| 100 | + },
|
| 101 | + "required": ["uppercase-hex"],
|
| 102 | + "expected": {
|
| 103 | + "stdout": "https://example.com/one/tao/%2FB/%2561\n",
|
| 104 | + "stderr": "",
|
| 105 | + "returncode": 0
|
| 106 | + }
|
| 107 | + },
|
| 108 | {
|
| 109 | "input": {
|
| 110 | "arguments": [
|