1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00
Commit Graph

19 Commits

Author SHA1 Message Date
henri
457e9dcf62 Added extra cancelation tests.
Schedule and immediately cancel TCP, UDP and SSL connects.
These tests are now grouped in a "cancel" module.
2013-10-23 19:04:10 +00:00
henri
4fd3cc2f10 Allow NSE_TYPE_CONNECT_SSL to be canceled.
This fixes a really bad bug that seems to have been there for a while. Canceling
a nsock connect SSL operation fails with fatal(). I have never seen it in real
life though.

Added a corresponding unit test.
2013-09-15 10:52:07 +00:00
henri
456430c676 Windows compatibility fix.
Initialize winsock before starting nsock test suite.
Initial patch from Gisle Vanem.
2013-08-13 12:36:28 +00:00
henri
b0abceec37 Make nsock test suite listeners listen on IPv4
Do everything explicitely to avoid unexpected behaviors. IPv6 will be added
separately at some point.
2013-08-11 08:31:39 +00:00
henri
ea8995ebf7 Use a parameter to invoke `ncat' in run_tests.sh
Run: `NCAT=/opt/something/ncat ./run_tests.sh' to invoke a specific binary.
2013-08-11 00:11:21 +00:00
henri
853aaff586 Manage expiration times via a heap queue.
This prevents nsock from iterating over the whole list of events at
each runloop, thus improving performance.

It made it necessary to have pointers from the msevents to the event
lists they belong to. The patch therefore also changes gh_list from
autonomous containers to embedded structures.

Added unit tests accordingly and cosmetic changes to make things look
more consistent.
2013-08-10 23:59:30 +00:00
henri
170a85f677 Don't use ANSI color sequences on windows.
Pointed out by Gisle Vanem. Fixed it in a way that makes it easy to disable on
other systems as well.
2013-08-10 20:19:38 +00:00
henri
23ad881d6b Removed superfluous includes.
Report and patch by Gisle Vanem.
2013-08-06 20:10:57 +00:00
henri
40b11064e4 Use socket_strerror() for error reporting.
Report and patch by Gisle Vanem.
2013-08-06 20:10:49 +00:00
henri
9bfe6e46cc Display the test name before running it.
This makes it easier to identify a test that hangs.
2013-06-15 12:33:31 +00:00
henri
8b7f91cd0f Moved gh_lists tests from nsock/src/ to nsock/tests/ 2013-05-22 14:35:24 +00:00
david
b6ca01d295 Use /bin/bash in run_tests.sh.
I got this error:
./run_tests.sh: 42: ./run_tests.sh: Syntax error: "(" unexpected
2013-05-18 19:18:07 +00:00
henri
8475cef210 Return actual error code. 2013-05-11 16:00:11 +00:00
henri
34c407189b s/Little/Minimal/ 2013-05-11 16:00:01 +00:00
henri
e54df43edf Readme file. 2013-05-11 10:22:44 +00:00
henri
3776852557 Added simple TCP connect test and setup ncat listeners.
The listeners are ncat-based echo servers:
  - UDP
  - TCP
  - TCP + SSL
2013-05-10 08:26:48 +00:00
henri
1da1fce331 Fixed indentation. 2013-05-08 18:08:48 +00:00
henri
4862bbcbb9 Added a nsock test module for loglevels. 2013-05-08 18:08:38 +00:00
henri
b51a943a48 Added a minimal regression test suite for nsock. 2013-05-08 11:52:28 +00:00