History log of /src/lib/libdiff/tests/libdiff_test.c (Results 1 – 7 of 7)
Revision Date Author Comments
# a689bfa4 05-Feb-2026 Dag-Erling Smørgrav <des@FreeBSD.org>

libdiff: Simplify truncation detection

* Adjust the comment to reflect the fact that SIGBUS can occur not only
if the file is truncated, but also if an I/O error occurs while paging
in any part

libdiff: Simplify truncation detection

* Adjust the comment to reflect the fact that SIGBUS can occur not only
if the file is truncated, but also if an I/O error occurs while paging
in any part of it.

* Instead of setting a flag, just return EIO.

* Adjust the unit test accordingly.

MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: thj, kevans
Differential Revision: https://reviews.freebsd.org/D55108

show more ...


# 9c7f83bb 20-May-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

diff: Nits in tests.

Sponsored by: Klara, Inc.


# 02d98d18 20-May-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

libdiff: Add a test for the truncation issue.

Sponsored by: Klara, Inc.
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D45218


# 9c7f83bb 20-May-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

diff: Nits in tests.

Sponsored by: Klara, Inc.


# 02d98d18 20-May-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

libdiff: Add a test for the truncation issue.

Sponsored by: Klara, Inc.
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D45218


# 9c7f83bb 20-May-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

diff: Nits in tests.

Sponsored by: Klara, Inc.


# 02d98d18 20-May-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

libdiff: Add a test for the truncation issue.

Sponsored by: Klara, Inc.
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D45218