diff options
author | Ian Lewis <ianlewis@google.com> | 2020-11-01 18:01:57 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-11-01 18:03:43 -0800 |
commit | 5e606844df577936ebcd13225da85eda80317021 (patch) | |
tree | 5f1048aaea3e0c594f66745fcb6e7e58288c1486 /test/syscalls/linux | |
parent | df88f223bb5474a462da65ede6f266eb52f1b2ef (diff) |
Fix returned error when deleting non-existant address
PiperOrigin-RevId: 340149214
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r-- | test/syscalls/linux/socket_netlink_route.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/socket_netlink_route.cc b/test/syscalls/linux/socket_netlink_route.cc index e83f0d81f..ee3c08770 100644 --- a/test/syscalls/linux/socket_netlink_route.cc +++ b/test/syscalls/linux/socket_netlink_route.cc @@ -536,7 +536,7 @@ TEST(NetlinkRouteTest, AddAndRemoveAddr) { // Second delete should fail, as address no longer exists. EXPECT_THAT(LinkDelLocalAddr(loopback_link.index, AF_INET, /*prefixlen=*/24, &addr, sizeof(addr)), - PosixErrorIs(EINVAL, ::testing::_)); + PosixErrorIs(EADDRNOTAVAIL, ::testing::_)); }); // Replace an existing address should succeed. |