Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Aug 2020 19:43:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        testing@FreeBSD.org
Subject:   [Bug 248583] sys.fs.fusefs.forget.main fails after [r364063, r364067]
Message-ID:  <bug-248583-32464@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248583

            Bug ID: 248583
           Summary: sys.fs.fusefs.forget.main fails after [r364063,
                    r364067]
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: tests
          Assignee: testing@FreeBSD.org
          Reporter: lwhsu@FreeBSD.org

sys.fs.fusefs.forget.main fails after [r364063, r364067]

https://ci.freebsd.org/job/FreeBSD-head-amd64-test/16106/testReport/junit/s=
ys.fs.fusefs/forget/main/
https://ci.freebsd.org/job/FreeBSD-head-i386-test/10207/testReport/junit/sy=
s.fs.fusefs/forget/main/

It looks the mocking FS needs updating?

Stdout:

[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from Forget
[ RUN      ] Forget.ok
[       OK ] Forget.ok (3 ms)
[ RUN      ] Forget.invalidate_names
unknown file: Failure

Unexpected mock function call - taking default action specified at:
/usr/src/tests/sys/fs/fusefs/mockfs.cc:447:
    Function call: process(@0x801400180 135168-byte object <30-00 00-00 02-=
00
00-00 05-00 00-00 00-00 00-00 2A-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
57-52 00-00 00-00 00-00 01-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
00-00 00-00 00-00 ... 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00
00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00>, @0x7fffdfdfcf=
60
{})
Google Mock tried the following 5 expectations, but none matched:

/usr/src/tests/sys/fs/fusefs/utils.cc:179: tried expectation #0:
EXPECT_CALL(*m_mock, process( ResultOf([=3D](auto in) { return (in.header.o=
pcode
=3D=3D FUSE_ACCESS); }, Eq(true)), _))...
  Expected arg #0: is mapped by the given callable to a value that is equal=
 to
true
           Actual: 135168-byte object <30-00 00-00 02-00 00-00 05-00 00-00
00-00 00-00 2A-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 57-52 00-00 00-=
00
00-00 01-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
... 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00
00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
00-00 00-00 00-00 00-00 00-00 00-00 00-00>, which is mapped by the given
callable to false (of type bool)
         Expected: to be called any number of times
           Actual: called once - satisfied and active
/usr/src/tests/sys/fs/fusefs/utils.cc:193: tried expectation #1:
EXPECT_CALL(*m_mock, process( ResultOf([=3D](auto in) { return (in.header.o=
pcode
=3D=3D FUSE_BMAP); }, Eq(true)), _))...
  Expected arg #0: is mapped by the given callable to a value that is equal=
 to
true
           Actual: 135168-byte object <30-00 00-00 02-00 00-00 05-00 00-00
00-00 00-00 2A-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 57-52 00-00 00-=
00
00-00 01-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
... 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00
00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
00-00 00-00 00-00 00-00 00-00 00-00 00-00>, which is mapped by the given
callable to false (of type bool)
         Expected: to be called any number of times
           Actual: never called - satisfied and active
/usr/src/tests/sys/fs/fusefs/forget.cc:118: tried expectation #2:
EXPECT_CALL(*m_mock, process( ResultOf([=3D](auto in) { return (in.header.o=
pcode
=3D=3D FUSE_LOOKUP && in.header.nodeid =3D=3D (1) && strcmp(in.body.lookup,=
 (DNAME)) =3D=3D
0); }, Eq(true)), _))...
  Expected arg #0: is mapped by the given callable to a value that is equal=
 to
true
           Actual: 135168-byte object <30-00 00-00 02-00 00-00 05-00 00-00
00-00 00-00 2A-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 57-52 00-00 00-=
00
00-00 01-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
... 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00
00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
00-00 00-00 00-00 00-00 00-00 00-00 00-00>, which is mapped by the given
callable to false (of type bool)
         Expected: to be called any number of times
           Actual: called once - satisfied and active
/usr/src/tests/sys/fs/fusefs/forget.cc:134: tried expectation #3:
EXPECT_CALL(*m_mock, process( ResultOf([=3D](auto in) { return (in.header.o=
pcode
=3D=3D FUSE_LOOKUP && in.header.nodeid =3D=3D (dir_ino) && strcmp(in.body.l=
ookup,
(FNAME)) =3D=3D 0); }, Eq(true)), _))...
  Expected arg #0: is mapped by the given callable to a value that is equal=
 to
true
           Actual: 135168-byte object <30-00 00-00 02-00 00-00 05-00 00-00
00-00 00-00 2A-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 57-52 00-00 00-=
00
00-00 01-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
... 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00
00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
00-00 00-00 00-00 00-00 00-00 00-00 00-00>, which is mapped by the given
callable to false (of type bool)
         Expected: to be called twice
           Actual: called once - unsatisfied and active
/usr/src/tests/sys/fs/fusefs/utils.cc:252: tried expectation #4:
EXPECT_CALL(*m_mock, process( ResultOf([=3D](auto in) { return (in.header.o=
pcode
=3D=3D FUSE_FORGET && in.header.nodeid =3D=3D ino && in.body.forget.nlookup=
 =3D=3D
nlookup); }, Eq(true)), _))...
  Expected arg #0: is mapped by the given callable to a value that is equal=
 to
true
           Actual: 135168-byte object <30-00 00-00 02-00 00-00 05-00 00-00
00-00 00-00 2A-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 57-52 00-00 00-=
00
00-00 01-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
... 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00
00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-=
00
00-00 00-00 00-00 00-00 00-00 00-00 00-00>, which is mapped by the given
callable to false (of type bool)
         Expected: to be called once
           Actual: never called - unsatisfied and active
/usr/src/tests/sys/fs/fusefs/mockfs.cc:914: Failure
Value of: r > 0 || errno =3D=3D EAGAIN
  Actual: false
Expected: true
Invalid argument
/usr/src/tests/sys/fs/fusefs/utils.cc:252: Failure
Actual function call count doesn't match EXPECT_CALL(*m_mock, process(
ResultOf([=3D](auto in) { return (in.header.opcode =3D=3D FUSE_FORGET &&
in.header.nodeid =3D=3D ino && in.body.forget.nlookup =3D=3D nlookup); }, E=
q(true)),
_))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
[  FAILED  ] Forget.invalidate_names (4 ms)
[----------] 2 tests from Forget (7 ms total)

[----------] Global test environment tear-down
[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D] 2 tests from 1 test case ran. (7 ms total)
[  PASSED  ] 1 test.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] Forget.invalidate_names

 1 FAILED TEST

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248583-32464>