Re: [libvirt PATCH 11/17] tests: Mock virProcessGetMaxMemLock()

2021-03-08 Thread Andrea Bolognani
On Mon, 2021-03-08 at 11:31 +0100, Michal Privoznik wrote: > On 3/5/21 8:13 PM, Andrea Bolognani wrote: > > +int > > +virProcessGetMaxMemLock(pid_t pid G_GNUC_UNUSED, unsigned long long *bytes > > G_GNUC_UNUSED) > > Ehm, probably coffee hadn't kicked in? Because I can see @bytes used .. > > >

Re: [libvirt PATCH 11/17] tests: Mock virProcessGetMaxMemLock()

2021-03-08 Thread Michal Privoznik
On 3/5/21 8:13 PM, Andrea Bolognani wrote: Up until now we've implicitly relied on the fact that failures reported from this function were simply ignored, but that's about to change and so we need a proper mock. Signed-off-by: Andrea Bolognani --- src/util/virprocess.h | 2 +-

[libvirt PATCH 11/17] tests: Mock virProcessGetMaxMemLock()

2021-03-05 Thread Andrea Bolognani
Up until now we've implicitly relied on the fact that failures reported from this function were simply ignored, but that's about to change and so we need a proper mock. Signed-off-by: Andrea Bolognani --- src/util/virprocess.h | 2 +- tests/virprocessmock.c | 7 +++ 2 files changed, 8