Closed worr closed 10 years ago
I would try "syscall.EXPECT().Mmap(0, int64(0), 16, 3, 4098).Returns(nil, errors.New("error"))", the types need to match in addition to the values (and gomock tends to not tell you the types in the output).
My bad. I had earlier tried it after converting all of the types to match the syscall.Mmap signature, but it didn't work and gave the same error.
When only doing the int64 conversion, like in your example, worked. Sorry for the erroneous bug.
CUT:
Error: