Skip to content

tests/libtest: drop TEST_HANG_TIMEOUT redefinition hack #17702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Jun 22, 2025

Before this patch the code relied on re-initializing TEST_HANG_TIMEOUT
macro before compiling each test, to allow them each to override it to
a custom value for single tests. Thie required re-including test.h
into each test.

After this patch this macro becomes a global, immutable, default. Tests
which want to override it can now use alternate macros that do accept
a custom timeout. The only test currently affected is lib1501.

Follow-up to 2c27a67 #17590


w/o ws: https://github.com/curl/curl/pull/17702/files?w=1

@vszakats vszakats added the build label Jun 22, 2025
@vszakats vszakats closed this in 855ae76 Jun 22, 2025
@vszakats vszakats deleted the libtests-drop-timeout-macro-hack branch June 22, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant