1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 11:49:01 +00:00

New nsock regression test: TestConnectFailure.

Trigger a ENETUNREACH error on connect() and check if properly reported.

As of now the test fails, the error isn't delivered.
This commit is contained in:
henri
2014-06-05 19:44:00 +00:00
parent 51279d6b01
commit a00aa0a460
2 changed files with 24 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ extern const struct test_case TestTimer;
extern const struct test_case TestLogLevels;
extern const struct test_case TestErrLevels;
extern const struct test_case TestConnectTCP;
extern const struct test_case TestConnectFailure;
extern const struct test_case TestGHLists;
extern const struct test_case TestGHHeaps;
extern const struct test_case TestHeapOrdering;
@@ -48,6 +49,7 @@ static const struct test_case *TestCases[] = {
&TestErrLevels,
/* ---- connect.c */
&TestConnectTCP,
&TestConnectFailure,
/* ---- ghlists.c */
&TestGHLists,
/* ---- ghheaps.c */