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
Unknown Object (File)
Thu, Sep 26, 1:33 PM
Unknown Object (File)
Thu, Sep 26, 4:27 AM
Unknown Object (File)
Wed, Sep 25, 2:57 AM
Unknown Object (File)
Tue, Sep 24, 4:23 AM
Unknown Object (File)
Sun, Sep 22, 5:20 PM
Unknown Object (File)
Sat, Sep 21, 5:51 PM
Unknown Object (File)
Sat, Sep 21, 5:17 AM
Unknown Object (File)
Sat, Sep 21, 2:27 AM
Subscribers

Details

Summary

Sponsored by: Klara, Inc.

Diff Detail

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

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
36

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.

55

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.