Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 3849e90

Browse files
authored
Merge pull request #342 from aiw-google/bug/aiw-google/comparison
Fix two assignments that were meant to be comparisons
2 parents 6aadeab + cf74813 commit 3849e90

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test-apps/TestInetEndPoint.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ static void TestInetInterface(nlTestSuite *inSuite, void *inContext)
232232
intId = intIterator.GetInterface();
233233
memset(intName, 0, sizeof(intName));
234234
GetInterfaceName(intId, intName, sizeof(intName));
235-
printf(" interface id: 0x%" PRIxPTR ", interface name: %s, %s mulicast\n",
235+
printf(" interface id: 0x%" PRIxPTR ", interface name: %s, %s multicast\n",
236236
(uintptr_t)(intId),
237237
intName,
238238
intIterator.SupportsMulticast() ? "support" : "don't support");
@@ -247,7 +247,7 @@ static void TestInetInterface(nlTestSuite *inSuite, void *inContext)
247247
addr = addrIterator.GetAddress();
248248
char buf[80];
249249
addr.ToString(buf, 80);
250-
printf(" %s, %s mulicast, prefix length: %d\n", buf,
250+
printf(" %s, %s multicast, prefix length: %d\n", buf,
251251
addrIterator.SupportsMulticast() ? "support":"don't support",
252252
addrIterator.GetIPv6PrefixLength());
253253
}
@@ -327,10 +327,10 @@ static void TestInetEndPoint(nlTestSuite *inSuite, void *inContext)
327327
NL_TEST_ASSERT(inSuite, err != INET_NO_ERROR);
328328

329329
// A bind should succeed with appropriate permissions but will
330-
// othewise fail.
330+
// otherwise fail.
331331

332332
err = testRaw6EP->BindIPv6LinkLocal(intId, addr);
333-
NL_TEST_ASSERT(inSuite, (err == INET_NO_ERROR) || (err = System::MapErrorPOSIX(EPERM)));
333+
NL_TEST_ASSERT(inSuite, (err == INET_NO_ERROR) || (err == System::MapErrorPOSIX(EPERM)));
334334

335335
didBind = (err == INET_NO_ERROR);
336336

@@ -352,7 +352,7 @@ static void TestInetEndPoint(nlTestSuite *inSuite, void *inContext)
352352
// otherwise, it will fail with a permissions error.
353353

354354
err = testRaw6EP->Bind(kIPAddressType_IPv6, addr);
355-
NL_TEST_ASSERT(inSuite, (didListen && (err == INET_ERROR_INCORRECT_STATE)) || (!didListen && (err = System::MapErrorPOSIX(EPERM))));
355+
NL_TEST_ASSERT(inSuite, (didListen && (err == INET_ERROR_INCORRECT_STATE)) || (!didListen && (err == System::MapErrorPOSIX(EPERM))));
356356

357357
// error SetICMPFilter case
358358
err = testRaw6EP->SetICMPFilter(0, ICMP6Types);
@@ -560,7 +560,7 @@ int main(int argc, char *argv[])
560560
// Generate machine-readable, comma-separated value (CSV) output.
561561
nl_test_set_output_style(OUTPUT_CSV);
562562

563-
// Run test suit againt one context.
563+
// Run test suite against one context.
564564
nlTestRunner(&theSuite, NULL);
565565

566566
return nlTestRunnerStats(&theSuite);

0 commit comments

Comments
 (0)