ztest: use ASSERT3P to compare pointers
With a sufficently modern gcc (I saw this with gcc13), gcc complains
when casting pointers to an integer of a different type (even a larger
one). On 32-bt ASSERT3U does this on 32-bit systems by casting a 32-bit
pointer to uint64_t so use ASSERT3P which uses uintptr_t.
Fixes: 5caeef02fa
RAID-Z expansion feature
Signed-off-by: Brooks Davis <brooks.davis@sri.com>
This commit is contained in:
parent
cd3e6b4f4c
commit
ce5543de65
|
@ -8045,7 +8045,7 @@ ztest_raidz_expand_run(ztest_shared_t *zs, spa_t *spa)
|
|||
ztest_expand_io_t *thread_args;
|
||||
|
||||
ASSERT3U(ztest_opts.zo_raidz_expand_test, !=, RAIDZ_EXPAND_NONE);
|
||||
ASSERT3U(rzvd->vdev_ops, ==, &vdev_raidz_ops);
|
||||
ASSERT3P(rzvd->vdev_ops, ==, &vdev_raidz_ops);
|
||||
ztest_opts.zo_raidz_expand_test = RAIDZ_EXPAND_STARTED;
|
||||
|
||||
/* Setup a 1 MiB buffer of random data */
|
||||
|
|
Loading…
Reference in New Issue