diff options
author | Ryan Moeller <[email protected]> | 2020-02-13 15:03:01 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-13 12:03:01 -0800 |
commit | b90b01cbc816878e9caa3b276533bb4b98aa90c6 (patch) | |
tree | ee04234822ef334f39668a43520011f5dd1b9fd1 /tests | |
parent | d1d65bb367d7baa4de1ae50640cf55b6434ee4a2 (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #9992
Diffstat (limited to 'tests')
-rw-r--r-- | tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c b/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c index 1a02aa515..f0c548ee4 100644 --- a/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c +++ b/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c @@ -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); |