Page MenuHomeFreeBSD

libdiff: Add a test for the truncation issue.
ClosedPublic

Authored by des on May 16 2024, 12:26 PM.
Tags
None
Referenced Files
F103451092: D45218.diff
Mon, Nov 25, 4:59 AM
F103448691: D45218.diff
Mon, Nov 25, 4:13 AM
F103382655: D45218.diff
Sun, Nov 24, 7:29 AM
Unknown Object (File)
Sat, Nov 23, 6:21 PM
Unknown Object (File)
Sat, Nov 23, 12:12 PM
Unknown Object (File)
Fri, Nov 22, 9:10 PM
Unknown Object (File)
Thu, Nov 21, 6:52 PM
Unknown Object (File)
Thu, Nov 21, 3:39 AM
Subscribers

Details

Summary

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57727
Build 54615: arc lint + arc unit

Event Timeline

des requested review of this revision.May 16 2024, 12:26 PM
This revision is now accepted and ready to land.May 16 2024, 1:40 PM
markj added inline comments.
lib/libdiff/tests/libdiff_test.c
35

You might consider using some multiple of the system page size instead. For instance, on arm64 it's possible to configure a base page size of 64KB, in which case this test is going to truncate within a page and so won't trigger SIGBUS.

54

In general you don't need to clean up files in the current directory, kyua or whatever other test runner should handle that for you I believe.

This revision was automatically updated to reflect the committed changes.