Skip to content

test(kaos): Keep the count of the read in a card folder's case - #116

Merged
jbenedictocenteno merged 1 commit into
developfrom
fix/host-suite-builds-under-gcc
Nov 13, 2026
Merged

jbenedictocenteno merged 1 commit into
developfrom
fix/host-suite-builds-under-gcc

Conversation

@jbenedictocenteno

Copy link
Copy Markdown
Contributor

Description of Change

The main host suite does not build on develop in CI. A case added with #114 reads a file back with (void)fread(...). glibc marks fread() warn_unused_result, a cast to void does not silence that under GCC, and CI builds the suites with -Werror:

tests/host/cases/test_storage_ao.c:3257:15: error: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Werror=unused-result]

clang on macOS accepts it, which is how it passed every local run. The case now keeps the count and checks it against the file it expects.

It is the only such call added since the last green run: the test code added since then was searched for the other calls glibc marks the same way.

Test Scenarios

  • tests/host built and run at this branch: 5338 cases, none failing.
  • The same suite built with GCC 16 on macOS at develop's head lists nothing else of ours as an error. It cannot show this one, since macOS's libc does not mark fread(): this pull request's own CI run is the check.

Related links

glibc marks fread() warn_unused_result, and a cast to void does not
silence that under GCC. CI builds the host suites with -Werror, so the
main suite did not build on develop. The case keeps the count and checks
it against the file it expects.
@jbenedictocenteno
jbenedictocenteno merged commit ff54571 into develop Nov 13, 2026
2 of 7 checks passed
@jbenedictocenteno
jbenedictocenteno deleted the fix/host-suite-builds-under-gcc branch November 13, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant