@@ -1039,7 +1039,7 @@ ztest_dsl_prop_set_uint64(char *osname, zfs_prop_t prop, uint64_t value,
1039
1039
ztest_record_enospc (FTAG );
1040
1040
return (error );
1041
1041
}
1042
- ASSERT3U (error , = = , 0 );
1042
+ ASSERT0 (error );
1043
1043
1044
1044
setpoint = umem_alloc (MAXPATHLEN , UMEM_NOFAIL );
1045
1045
VERIFY3U (dsl_prop_get (osname , propname , sizeof (curval ),
@@ -1073,7 +1073,7 @@ ztest_spa_prop_set_uint64(zpool_prop_t prop, uint64_t value)
1073
1073
ztest_record_enospc (FTAG );
1074
1074
return (error );
1075
1075
}
1076
- ASSERT3U (error , = = , 0 );
1076
+ ASSERT0 (error );
1077
1077
1078
1078
return (error );
1079
1079
}
@@ -1776,7 +1776,7 @@ ztest_replay_setattr(ztest_ds_t *zd, lr_setattr_t *lr, boolean_t byteswap)
1776
1776
1777
1777
ASSERT3U (lr -> lr_size , >=, sizeof (* bbt ));
1778
1778
ASSERT3U (lr -> lr_size , <=, db -> db_size );
1779
- VERIFY3U (dmu_set_bonus (db , lr -> lr_size , tx ), = = , 0 );
1779
+ VERIFY0 (dmu_set_bonus (db , lr -> lr_size , tx ));
1780
1780
bbt = ztest_bt_bonus (db );
1781
1781
1782
1782
ztest_bt_generate (bbt , os , lr -> lr_foid , -1ULL , lr -> lr_mode , txg , crtxg );
@@ -3200,7 +3200,7 @@ ztest_objset_destroy_cb(const char *name, void *arg)
3200
3200
error = dmu_object_info (os , ZTEST_DIROBJ , & doi );
3201
3201
if (error != ENOENT ) {
3202
3202
/* We could have crashed in the middle of destroying it */
3203
- ASSERT3U (error , = = , 0 );
3203
+ ASSERT0 (error );
3204
3204
ASSERT3U (doi .doi_type , = = , DMU_OT_ZAP_OTHER );
3205
3205
ASSERT3S (doi .doi_physical_blocks_512 , >=, 0 );
3206
3206
}
@@ -3673,10 +3673,10 @@ ztest_dmu_read_write(ztest_ds_t *zd, uint64_t id)
3673
3673
*/
3674
3674
error = dmu_read (os , packobj , packoff , packsize , packbuf ,
3675
3675
DMU_READ_PREFETCH );
3676
- ASSERT3U (error , = = , 0 );
3676
+ ASSERT0 (error );
3677
3677
error = dmu_read (os , bigobj , bigoff , bigsize , bigbuf ,
3678
3678
DMU_READ_PREFETCH );
3679
- ASSERT3U (error , = = , 0 );
3679
+ ASSERT0 (error );
3680
3680
3681
3681
/*
3682
3682
* Get a tx for the mods to both packobj and bigobj.
@@ -3999,10 +3999,10 @@ ztest_dmu_read_write_zcopy(ztest_ds_t *zd, uint64_t id)
3999
3999
if (i != 0 || ztest_random (2 ) != 0 ) {
4000
4000
error = dmu_read (os , packobj , packoff ,
4001
4001
packsize , packbuf , DMU_READ_PREFETCH );
4002
- ASSERT3U (error , = = , 0 );
4002
+ ASSERT0 (error );
4003
4003
error = dmu_read (os , bigobj , bigoff , bigsize ,
4004
4004
bigbuf , DMU_READ_PREFETCH );
4005
- ASSERT3U (error , = = , 0 );
4005
+ ASSERT0 (error );
4006
4006
}
4007
4007
compare_and_update_pbbufs (s , packbuf , bigbuf , bigsize ,
4008
4008
n , chunksize , txg );
@@ -4287,7 +4287,7 @@ ztest_zap(ztest_ds_t *zd, uint64_t id)
4287
4287
if (error == ENOENT )
4288
4288
goto out ;
4289
4289
4290
- ASSERT3U (error , = = , 0 );
4290
+ ASSERT0 (error );
4291
4291
4292
4292
tx = dmu_tx_create (os );
4293
4293
dmu_tx_hold_zap (tx , object , B_TRUE , NULL );
@@ -4494,7 +4494,7 @@ ztest_commit_callback(void *arg, int error)
4494
4494
data -> zcd_called = B_TRUE ;
4495
4495
4496
4496
if (error == ECANCELED ) {
4497
- ASSERT3U (data -> zcd_txg , = = , 0 );
4497
+ ASSERT0 (data -> zcd_txg );
4498
4498
ASSERT (!data -> zcd_added );
4499
4499
4500
4500
/*
@@ -4704,7 +4704,7 @@ ztest_spa_prop_get_set(ztest_ds_t *zd, uint64_t id)
4704
4704
(void ) ztest_spa_prop_set_uint64 (ZPOOL_PROP_DEDUPDITTO ,
4705
4705
ZIO_DEDUPDITTO_MIN + ztest_random (ZIO_DEDUPDITTO_MIN ));
4706
4706
4707
- VERIFY3U (spa_prop_get (ztest_spa , & props ), = = , 0 );
4707
+ VERIFY0 (spa_prop_get (ztest_spa , & props ));
4708
4708
4709
4709
if (ztest_opts .zo_verbose >= 6 )
4710
4710
dump_nvlist (props , 4 );
@@ -5557,7 +5557,7 @@ ztest_dataset_open(int d)
5557
5557
}
5558
5558
ASSERT (error == 0 || error == EEXIST );
5559
5559
5560
- VERIFY3U (dmu_objset_hold (name , zd , & os ), = = , 0 );
5560
+ VERIFY0 (dmu_objset_hold (name , zd , & os ));
5561
5561
(void ) rw_exit (& ztest_name_lock );
5562
5562
5563
5563
ztest_zd_init (zd , ZTEST_GET_SHARED_DS (d ), os );
@@ -5757,7 +5757,7 @@ ztest_run(ztest_shared_t *zs)
5757
5757
5758
5758
/* Verify that at least one commit cb was called in a timely fashion */
5759
5759
if (zc_cb_counter >= ZTEST_COMMIT_CB_MIN_REG )
5760
- VERIFY3U (zc_min_txg_delay , = = , 0 );
5760
+ VERIFY0 (zc_min_txg_delay );
5761
5761
5762
5762
spa_close (spa , FTAG );
5763
5763
0 commit comments