Page MenuHomeFreeBSD

atf: Guard against multiple evaluation.
ClosedPublic

Authored by des on May 10 2024, 6:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 5:30 AM
Unknown Object (File)
Oct 5 2024, 4:33 PM
Unknown Object (File)
Oct 5 2024, 2:31 PM
Unknown Object (File)
Oct 1 2024, 9:40 PM
Unknown Object (File)
Sep 20 2024, 8:46 PM
Unknown Object (File)
Sep 20 2024, 12:02 AM
Unknown Object (File)
Sep 17 2024, 6:11 AM
Unknown Object (File)
Sep 17 2024, 2:55 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.May 10 2024, 6:12 AM

BTW, ATF is under FreeBSD org at GitHub: https://github.com/freebsd/atf , we an fix there and import to base.

Cool, feel free to open an issue there, I don't want to have to wait weeks or months for a fix.

ngie added a subscriber: ngie.
ngie added inline comments.
contrib/atf/atf-c/macros.h
174

_(picking a line)_
Should this macro expansion use #_atf_expected, #_atf_actual instead of #expected, #actual? It shouldn't matter, except with non standards conforming C/C++ toolchains.

This revision is now accepted and ready to land.May 14 2024, 10:33 PM
des marked an inline comment as done.May 15 2024, 10:07 AM
des added inline comments.
contrib/atf/atf-c/macros.h
174

No, that wouldn't work since _atf_expected and _atf_actual aren't macro parameters, and I don't see why you'd want to.

This revision was automatically updated to reflect the committed changes.
des marked an inline comment as done.