Skip to content

tests: fix to use uint32_t where necessary - #20210

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:tuint
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:tuint

Conversation

@vszakats

@vszakats vszakats commented Jan 7, 2026 •

Copy link
Copy Markdown
Member

Fixes MS-DOS DJGPP buidls, possibly others.

Follow-up to e70436a #20200
Follow-up to 4701a6d #19695

@github-actions github-actions Bot added the tests label Jan 7, 2026
@vszakats vszakats mentioned this pull request Jan 7, 2026
3 tasks done
@vszakats vszakats added the build label Jan 7, 2026
@vszakats

vszakats commented Jan 7, 2026

Copy link
Copy Markdown
Member Author

Weird Windows flaky result (for curiousity):

test 1350...[FTP download, file without C-D inside, using -O -D stdout]
 143 functions found, but only fail 13 (9.09%)
 system() returned 36608
 1350: torture FAILED: function number 130 in test.

https://github.com/curl/curl/actions/runs/20787181185/job/59699837101?pr=20210

@vszakats vszakats closed this in 8881a52 Jan 7, 2026
@vszakats
vszakats deleted the tuint branch January 7, 2026 16:01
vszakats added a commit that referenced this pull request Jan 7, 2026
In `!ssl` variant.

It's useful to catch `uint32_t` mismatches with `unsigned int` or its
printf mask.

Also add Renovate version bump rule.

It takes about 1m (autotools) + 30s (cmake) in CI.

Bug: #20199 (comment)
Follow-up to 8881a52 #20210
Follow-up to e70436a #20200
Follow-up to 0630e66 #18338

Closes #20204
Comment thread tests/unit/unit3211.c
if(n != s[i]) {
curl_mfprintf(stderr, "expected next to be %u, not %u\n", s[i], n);
curl_mfprintf(stderr, "expected next to be %" PRIu32
", not %" PRIu32 "\n", s[i], n);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am against that we do this everywhere.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everywhere meaning around a ~dozen places?

I don't understand. So why using C99 types? Why supporting DJGPP?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, it's not too bad right now - only a dozen places or so. That's not too bad.

However, we don't need it. And we want to switch to using uint* types on many more places - which then would need many more uses. That is what I'm referring to when I (sloppily) say "everywhere",

So why using C99 types?

For convenience and consistency. And because users are used to them.

Why supporting DJGPP?

You make this into something bigger than my remarks now. I'm not objecting to supporting djgpp. I'm objecting to a warning I consider just in the way.

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.

2 participants