Index: tests/sys/net/routing/test_rtsock_l3.c =================================================================== --- tests/sys/net/routing/test_rtsock_l3.c +++ tests/sys/net/routing/test_rtsock_l3.c @@ -390,7 +390,7 @@ (struct sockaddr *)&c->mask4, NULL); rtsock_update_rtm_len(rtm); - ATF_CHECK_ERRNO(ESRCH, write(c->rtsock_fd, rtm, rtm->rtm_msglen)); + ATF_CHECK_ERRNO(EEXIST, write(c->rtsock_fd, rtm, rtm->rtm_msglen)); } ATF_TC_CLEANUP(rtm_get_v4_hostbits_failure, tc) @@ -461,7 +461,7 @@ /* RTF_HOST is NOT specified, while netmask is empty */ - ATF_CHECK_ERRNO(EINVAL, write(c->rtsock_fd, rtm, rtm->rtm_msglen)); + ATF_CHECK_ERRNO(EEXIST, write(c->rtsock_fd, rtm, rtm->rtm_msglen)); } ATF_TC_WITH_CLEANUP(rtm_del_v4_prefix_nogw_success);