diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-11-26 05:37:34 -0500 |
---|---|---|
committer | Thanos <tmakatos@gmail.com> | 2020-11-27 09:36:12 +0000 |
commit | 7df3de2f9d2a8fcfd6bb24ddbfc5aa20e237f464 (patch) | |
tree | 821f8cfbbe2ac9906dfa2780e2feab164ba97937 /lib/common.h | |
parent | 24cacccd92a0da049af83d4da35bd3bcebf236ae (diff) | |
download | libvfio-user-7df3de2f9d2a8fcfd6bb24ddbfc5aa20e237f464.zip libvfio-user-7df3de2f9d2a8fcfd6bb24ddbfc5aa20e237f464.tar.gz libvfio-user-7df3de2f9d2a8fcfd6bb24ddbfc5aa20e237f464.tar.bz2 |
add unit tests for DMA regions without file descriptor
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/common.h')
-rw-r--r-- | lib/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/common.h b/lib/common.h index e30bc2e..dbd3c9b 100644 --- a/lib/common.h +++ b/lib/common.h @@ -55,6 +55,9 @@ #define ROUND_DOWN(x, a) ((x) & ~((a)-1)) #define ROUND_UP(x,a) ROUND_DOWN((x)+(a)-1, a) +#define UNIT_TEST_SYMBOL(x) \ + typeof(x) __wrap_##x __attribute__((weak, alias(#x))) + #endif /* LIB_MUSER_COMMON_H */ /* ex: set tabstop=4 shiftwidth=4 softtabstop=4 expandtab: */ |