Fix incorrect expected error in ztest
commit9aa1a2878ea98f707e871833743d074a59ff2115
authorPaul Dagnelie <pcd@delphix.com>
Tue, 19 Sep 2023 16:02:23 +0000 (19 09:02 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Sep 2023 23:13:20 +0000 (22 16:13 -0700)
tree186d6ed99e8bacefdfb46aaca4b0a0ee41010471
parentcc75c816c539d22c56aa912d5db19827a16dcbf3
Fix incorrect expected error in ztest

There is an occasional ztest failure that looks like ztest: attach
(/var/tmp/zloop-run/ztest.13a 570425344, draid1-1-0 532152320, 1)
returned 22, expected 95. This is because the value that we return
is EINVAL, but expected_error is set incorrectly.

Change the expected_error value to match both the comment and the
actual error value.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #15295
cmd/ztest.c