diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-08-05 12:47:55 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-05 12:47:55 -0700 |
commit | 34d302cb8ab28be2481210c23f61189a8e90e25e (patch) | |
tree | 076e3fa0dd4cec2668499f2d9bdf0f37c4c9e59e | |
parent | 190b1e6bd4aae56eff3ff846efea38629361b3a9 (diff) | |
parent | 9094adfc2792945b344e393de977b3e8627ace72 (diff) |
Merge pull request #3502 from craig08:fuse-integration-test-fix-connection-refused
PiperOrigin-RevId: 325080329
-rw-r--r-- | test/fuse/linux/fuse_base.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/fuse/linux/fuse_base.cc b/test/fuse/linux/fuse_base.cc index 6c8432fd0..ce69276c9 100644 --- a/test/fuse/linux/fuse_base.cc +++ b/test/fuse/linux/fuse_base.cc @@ -100,8 +100,11 @@ PosixError FuseTest::ConsumeFuseInit() { .error = 0, .unique = 2, }; - // Returns an empty init out payload since this is just a test. - struct fuse_init_out out_payload; + // Returns a fake fuse_init_out with 7.0 version to avoid ECONNREFUSED + // error in the initialization of FUSE connection. + struct fuse_init_out out_payload = { + .major = 7, + }; iov_out[0].iov_len = sizeof(out_header); iov_out[0].iov_base = &out_header; iov_out[1].iov_len = sizeof(out_payload); |