Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165268412
D54331.id168493.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
516 B
Referenced Files
None
Subscribers
None
D54331.id168493.diff
View Options
diff --git a/tests/sys/fs/fusefs/mockfs.cc b/tests/sys/fs/fusefs/mockfs.cc
--- a/tests/sys/fs/fusefs/mockfs.cc
+++ b/tests/sys/fs/fusefs/mockfs.cc
@@ -980,7 +980,11 @@
}
res = read(m_fuse_fd, &in, sizeof(in));
- if (res < 0 && errno != EBADF && !m_quit && !m_expect_unmount) {
+ if (res < 0 && errno == ENODEV && m_expect_unmount) {
+ // The kernel unmounted us, as expected.
+ m_quit = true;
+ }
+ if (res < 0 && errno != EBADF && !m_quit) {
m_quit = true;
FAIL() << "read: " << strerror(errno);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 8, 7:28 AM (10 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36216721
Default Alt Text
D54331.id168493.diff (516 B)
Attached To
Mode
D54331: fusefs: Fix further intermittency in the BadServer.ShortWrite test case
Attached
Detach File
Event Timeline
Log In to Comment