]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Allow expansion of mocked stat symbols
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 7 Mar 2022 08:21:26 +0000 (09:21 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 7 Mar 2022 09:31:24 +0000 (10:31 +0100)
commit3c61c9bea60c1bc95efb131eaee414c457f0ab09
tree24d8e20583ac71edf91a0b310e9de169e76d227f
parent822be8d6520105c3cbdb741982e4590a8f415e5f
tests: Allow expansion of mocked stat symbols

When libc uses a define to rewrite stat64 to stat our mocks do not work if they
are chained because the symbol that we are looking up is being stringified and
therefore preventing the stat64->stat expansion per C-preprocessor rules.  One
stringification macro is just enough to make it work.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/virmock.h