-
- Downloads
tst-zfs-disk: Drop broken ASSERT()
The ASSERT() doesn't compile if ZFS debugging is enabled: CC tests/tst-zfs-disk.o In file included from ../../bsd/sys/cddl/compat/opensolaris/sys/debug.h:35:0, from ../../bsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_context.h:42, from ../../tests/tst-zfs-disk.c:28: ../../tests/tst-zfs-disk.c: In function ‘make_vdev_root’: ../../tests/tst-zfs-disk.c:119:9: error: ‘t’ undeclared (first use in this function) ASSERT(t > 0); ^ ../../bsd/sys/cddl/contrib/opensolaris/uts/common/sys/debug.h:56:29: note: in definition of macro ‘ASSERT’ #define ASSERT(EX) ((void)((EX) || assfail(#EX, __FILE__, __LINE__))) ^ ../../tests/tst-zfs-disk.c:119:9: note: each undeclared identifier is reported only once for each function it appears in ASSERT(t > 0); ^ ../../bsd/sys/cddl/contrib/opensolaris/uts/common/sys/debug.h:56:29: note: in definition of macro ‘ASSERT’ #define ASSERT(EX) ((void)((EX) || assfail(#EX, __FILE__, __LINE__))) ^
Please register or sign in to comment