Commit 67f440c0 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

selftests/net: Fix various spelling mistakes in TCP-AO tests

There are a handful of spelling mistakes in test messages in the
TCP-AIO selftests. Fix these.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Reviewed-by: default avatarDmitry Safonov <dima@arista.com>
Reviewed-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 27c346a2
...@@ -55,7 +55,7 @@ static void try_accept(const char *tst_name, unsigned int port, const char *pwd, ...@@ -55,7 +55,7 @@ static void try_accept(const char *tst_name, unsigned int port, const char *pwd,
err = test_wait_fd(lsk, timeout, 0); err = test_wait_fd(lsk, timeout, 0);
if (err == -ETIMEDOUT) { if (err == -ETIMEDOUT) {
if (!fault(TIMEOUT)) if (!fault(TIMEOUT))
test_fail("timeouted for accept()"); test_fail("timed out for accept()");
} else if (err < 0) { } else if (err < 0) {
test_error("test_wait_fd()"); test_error("test_wait_fd()");
} else { } else {
......
...@@ -227,7 +227,7 @@ void netstat_print_diff(struct netstat *nsa, struct netstat *nsb) ...@@ -227,7 +227,7 @@ void netstat_print_diff(struct netstat *nsa, struct netstat *nsb)
} }
if (nsb->counters_nr < nsa->counters_nr) if (nsb->counters_nr < nsa->counters_nr)
test_error("Unexpected: some counters dissapeared!"); test_error("Unexpected: some counters disappeared!");
for (j = 0, i = 0; i < nsb->counters_nr; i++) { for (j = 0, i = 0; i < nsb->counters_nr; i++) {
if (strcmp(nsb->counters[i].name, nsa->counters[j].name)) { if (strcmp(nsb->counters[i].name, nsa->counters[j].name)) {
...@@ -244,7 +244,7 @@ void netstat_print_diff(struct netstat *nsa, struct netstat *nsb) ...@@ -244,7 +244,7 @@ void netstat_print_diff(struct netstat *nsa, struct netstat *nsb)
j++; j++;
} }
if (j != nsa->counters_nr) if (j != nsa->counters_nr)
test_error("Unexpected: some counters dissapeared!"); test_error("Unexpected: some counters disappeared!");
nsb = nsb->next; nsb = nsb->next;
nsa = nsa->next; nsa = nsa->next;
......
...@@ -427,7 +427,7 @@ static void test_einval_del_key(void) ...@@ -427,7 +427,7 @@ static void test_einval_del_key(void)
sk = prepare_defs(TCP_AO_DEL_KEY, &del); sk = prepare_defs(TCP_AO_DEL_KEY, &del);
del.set_current = 1; del.set_current = 1;
setsockopt_checked(sk, TCP_AO_DEL_KEY, &del, ENOENT, "set non-exising current key"); setsockopt_checked(sk, TCP_AO_DEL_KEY, &del, ENOENT, "set non-existing current key");
sk = prepare_defs(TCP_AO_DEL_KEY, &del); sk = prepare_defs(TCP_AO_DEL_KEY, &del);
del.set_rnext = 1; del.set_rnext = 1;
......
...@@ -72,7 +72,7 @@ static void try_accept(const char *tst_name, unsigned int port, ...@@ -72,7 +72,7 @@ static void try_accept(const char *tst_name, unsigned int port,
err = test_wait_fd(lsk, timeout, 0); err = test_wait_fd(lsk, timeout, 0);
if (err == -ETIMEDOUT) { if (err == -ETIMEDOUT) {
if (!fault(TIMEOUT)) if (!fault(TIMEOUT))
test_fail("timeouted for accept()"); test_fail("timed out for accept()");
} else if (err < 0) { } else if (err < 0) {
test_error("test_wait_fd()"); test_error("test_wait_fd()");
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment