diff --git a/libs/circle-newlib b/libs/circle-newlib index 0a7bdbd..4e039b1 160000 --- a/libs/circle-newlib +++ b/libs/circle-newlib @@ -1 +1 @@ -Subproject commit 0a7bdbd3702555f9cc6acdacdb53347985c3ef74 +Subproject commit 4e039b1861c28f7f20a07a92adf6d3c04d758d9a diff --git a/samples/05-smoketest/kernel.cpp b/samples/05-smoketest/kernel.cpp index 522628a..54a2b8a 100644 --- a/samples/05-smoketest/kernel.cpp +++ b/samples/05-smoketest/kernel.cpp @@ -827,7 +827,7 @@ void CKernel::SocketTest(void) Report("Basic socket() tests successful"); - Report("Basic bind() test"); + Report("Basic socket lifecycle test"); { int const fd = socket(AF_INET, SOCK_STREAM, 0); @@ -852,11 +852,20 @@ void CKernel::SocketTest(void) Report("bind() on file descriptor %d succeeded", fd); + int const listen_result = listen(fd, 3); + + if (listen_result == -1) + { + PErrorExit("listen() failed"); + } + + Report("listen() on file descriptor %d succeeded", fd); + if (close(fd) < 0) { PErrorExit("close (fd) failed"); } } - Report("Basic bind() test successful"); + Report("Basic socket lifecycle test successful"); } \ No newline at end of file