tidy-up: mostly whitespace nits

- delete completed TODO from `./CMakeLists.txt`.
- convert a C++ comment to C89 in `./CMake/CurlTests.c`.
- delete duplicate EOLs from EOF.
- add missing EOL at EOF.
- delete whitespace at EOL (except from expected test results).
- convert tabs to spaces.
- convert CRLF EOLs to LF in GHA yaml.
- text casing fixes in `./CMakeLists.txt`.
- fix a codespell typo in `packages/OS400/initscript.sh`.

Closes #11772
This commit is contained in:
Viktor Szakats 2023-08-31 13:28:49 +00:00
parent 63f23fafc9
commit ce3dce9015
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
87 changed files with 135 additions and 173 deletions

View file

@ -3,4 +3,4 @@
# SPDX-License-Identifier: curl
config.ini
gen
gen

View file

@ -7,4 +7,4 @@ h2-download
ws-data
ws-pingpong
h2-upgrade-extreme
tls-session-reuse
tls-session-reuse

View file

@ -84,4 +84,3 @@ def nghttpx_fwd(env, httpd) -> Optional[Nghttpx]:
assert nghttpx.start()
yield nghttpx
nghttpx.stop()

View file

@ -26,4 +26,4 @@
pytest
cryptography
multipart
websockets
websockets

View file

@ -140,5 +140,3 @@ class TestGoAway:
log.debug(f'request {idx} connected')
# this should take `count` seconds to retrieve
assert r.duration >= timedelta(seconds=count)

View file

@ -108,4 +108,3 @@ class TestErrors:
r.check_response(http_status=200, count=1)
# check that we did a downgrade
assert r.stats[0]['http_version'] == '1.1', r.dump_logs()

View file

@ -112,4 +112,3 @@ class TestEyeballs:
r.check_response(count=1, http_status=None, exitcode=False)
assert r.stats[0]['time_connect'] == 0 # no one should have listened
assert r.stats[0]['time_appconnect'] == 0 # did not happen either

View file

@ -298,7 +298,7 @@ class TestUpload:
'--cacert', env.ca.cert_file,
'--request', 'PUT',
'--digest', '--user', 'test:test',
'--data-binary', f'@{fdata}',
'--data-binary', f'@{fdata}',
'--url', url,
])
assert r.exit_code == 0, r.dump_logs()

View file

@ -157,4 +157,3 @@ class TestCaddy:
assert r.total_connects > 1, r.dump_logs()
else:
assert r.total_connects == 1, r.dump_logs()

View file

@ -66,7 +66,7 @@ class TestPush:
url = f'https://{env.domain1}:{env.https_port}/push/data1'
r = curl.http_download(urls=[url], alpn_proto='h2', with_stats=False,
with_headers=True)
r.check_exit_code(0)
r.check_exit_code(0)
assert len(r.responses) == 2, f'{r.responses}'
assert r.responses[0]['status'] == 103, f'{r.responses}'
assert 'link' in r.responses[0]['header'], f'{r.responses[0]}'

View file

@ -248,4 +248,3 @@ class TestProxy:
assert r.total_connects == 2
else:
assert r.total_connects == 2

View file

@ -157,4 +157,3 @@ class TestProxyAuth:
protocol='HTTP/2' if proto == 'h2' else 'HTTP/1.1')
assert self.get_tunnel_proto_used(r) == 'HTTP/2' \
if tunnel == 'h2' else 'HTTP/1.1'

View file

@ -109,4 +109,4 @@ class TestTracing:
if m is not None:
found_tcp = True
if found_tcp:
assert False, f'TCP filter appears in trace "all,-tcp": {r.stderr}'
assert False, f'TCP filter appears in trace "all,-tcp": {r.stderr}'

View file

@ -469,4 +469,3 @@ class Env:
pytest.exit(f"`make`in {client_dir} failed:\n{p.stderr}")
return False
return True

View file

@ -2,4 +2,4 @@
#
# SPDX-License-Identifier: curl
*.slo
*.slo

View file

@ -256,4 +256,3 @@ class NghttpxFwd(Nghttpx):
time.sleep(.1)
log.error(f"Server still not responding after {timeout}")
return False

View file

@ -45,5 +45,3 @@ def alloc_ports(port_specs: Dict[str, int]) -> Dict[str, int]:
for s in socks:
s.close()
return ports