mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Add a regression test for PR 276191.
The bug isn't fusefs-specific, but this is the easiest way to reproduce
it.
PR: 276191
MFC after: 1 week
MFC with: bdb46c21a3
Differential Revision: https://reviews.freebsd.org/D43446
Reviewed by: kib
This commit is contained in:
parent
69748e62e8
commit
6b1c534927
|
@ -507,6 +507,16 @@ TEST_P(Io, resize_a_valid_buffer_while_extending)
|
||||||
close(m_test_fd);
|
close(m_test_fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* mmap of a suitable region could trigger a panic. I'm not sure what
|
||||||
|
* combination of size and offset counts as "suitable". Regression test for
|
||||||
|
* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276191
|
||||||
|
*/
|
||||||
|
TEST_P(IoCacheable, vnode_pager_generic_putpage_clean_block_at_eof)
|
||||||
|
{
|
||||||
|
do_mapwrite(0x1bbc3, 0x3b4e0);
|
||||||
|
}
|
||||||
|
|
||||||
INSTANTIATE_TEST_SUITE_P(Io, Io,
|
INSTANTIATE_TEST_SUITE_P(Io, Io,
|
||||||
Combine(Bool(), /* async read */
|
Combine(Bool(), /* async read */
|
||||||
Values(0x1000, 0x10000, 0x20000), /* m_maxwrite */
|
Values(0x1000, 0x10000, 0x20000), /* m_maxwrite */
|
||||||
|
|
Loading…
Reference in a new issue