Skip to content
Snippets Groups Projects
Commit f43cdb68 authored by Pekka Enberg's avatar Pekka Enberg
Browse files

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__)))
                             ^
parent ac7a8447
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ make_vdev_root(void) ...@@ -116,7 +116,7 @@ make_vdev_root(void)
nvlist_t *root, **child; nvlist_t *root, **child;
int c; int c;
ASSERT(t > 0); //ASSERT(t > 0);
child = calloc(1, sizeof (nvlist_t *)); child = calloc(1, sizeof (nvlist_t *));
child[0] = make_vdev_disk("/dev/vblk1"); child[0] = make_vdev_disk("/dev/vblk1");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment