mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
ZTS: Use ECKSUM instead of EBADE in libzfs test
Linux defines ECKSUM as EBADE, FreeBSD defines it as EINTEGRITY. Test for ECKSUM instead of EBADE so we don't have to define EBADE for this test on FreeBSD. Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #9992
This commit is contained in:
@@ -556,7 +556,7 @@ test_recv_new(const char *dataset, int fd)
|
||||
fnvlist_add_boolean(optional, "resumable");
|
||||
fnvlist_add_uint64(optional, "action_handle", *action_handle);
|
||||
#endif
|
||||
IOC_INPUT_TEST(ZFS_IOC_RECV_NEW, dataset, required, optional, EBADE);
|
||||
IOC_INPUT_TEST(ZFS_IOC_RECV_NEW, dataset, required, optional, ECKSUM);
|
||||
|
||||
nvlist_free(props);
|
||||
nvlist_free(optional);
|
||||
|
||||
Reference in New Issue
Block a user