Re: [PATCH 1/2] virusbmock: Switch to VIR_MOCK_REAL_INIT()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 14, 2024 at 10:34:27AM +0100, Michal Privoznik wrote:
> Since virusbmock was written 10 years ago, back when we didn't
> have virmock.h and its helpers, it open codes symbol resolution
> (VIR_MOCK_REAL_INIT). With a bit of cleanup (e.g. renaming
> realopen to real_open and so on) it can use virmock.h provided
> macros.
> 
> And while at it, drop include of virusb.h - there is no
> compelling reason for it include the file. The mock just
> redirects paths passed to open()/opendir().
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  tests/virusbmock.c | 20 ++++++++------------
>  1 file changed, 8 insertions(+), 12 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux