From: Victor Julien Date: Sat, 6 May 2023 04:55:58 +0000 (+0200) Subject: tests: spelling X-Git-Tag: suricata-7.0.0-rc2~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a76145fba63f5466d9c3f5d137ff46fa514a8d7a;p=thirdparty%2Fsuricata.git tests: spelling --- diff --git a/src/tests/detect-http-client-body.c b/src/tests/detect-http-client-body.c index a93894eb37..c87d66756b 100644 --- a/src/tests/detect-http-client-body.c +++ b/src/tests/detect-http-client-body.c @@ -821,7 +821,7 @@ libhtp:\n\ } /** - * \test Test that a signature containting a http_client_body is correctly parsed + * \test Test that a signature containing a http_client_body is correctly parsed * and the keyword is registered. */ static int DetectHttpClientBodyTest01(void) diff --git a/src/tests/detect-http-host.c b/src/tests/detect-http-host.c index f3ac4400b0..4fbdff9b69 100644 --- a/src/tests/detect-http-host.c +++ b/src/tests/detect-http-host.c @@ -2419,7 +2419,7 @@ end: } /** - * \test Test that a signature containting a http_host is correctly parsed + * \test Test that a signature containing a http_host is correctly parsed * and the keyword is registered. */ static int DetectHttpHHTest01(void) diff --git a/src/tests/detect-http-server-body.c b/src/tests/detect-http-server-body.c index 3f575289f4..29340fb4aa 100644 --- a/src/tests/detect-http-server-body.c +++ b/src/tests/detect-http-server-body.c @@ -5766,7 +5766,7 @@ end: /** *\test Test that the http_server_body content matches against a http request - * which holds the content. Case insensitve. + * which holds the content. Case insensitive. */ static int DetectHttpServerBodyTest10(void) { @@ -7089,7 +7089,7 @@ end: /** *\test Test that the http_server_body content matches against a http request - * which holds the content. Case insensitve. + * which holds the content. Case insensitive. */ static int DetectHttpServerBodyFileDataTest05(void) { diff --git a/src/tests/detect-http-stat-code.c b/src/tests/detect-http-stat-code.c index 3ed512a1bc..25a711545b 100644 --- a/src/tests/detect-http-stat-code.c +++ b/src/tests/detect-http-stat-code.c @@ -2166,7 +2166,7 @@ end: } /** \test Check the signature working to alert when http_stat_code is matched for - * for negatoin or not */ + * for negation or not */ static int DetectHttpStatCodeSigTest04(void) { int result = 0; diff --git a/src/tests/detect-http-user-agent.c b/src/tests/detect-http-user-agent.c index 579fdabfc4..df9c9c1697 100644 --- a/src/tests/detect-http-user-agent.c +++ b/src/tests/detect-http-user-agent.c @@ -364,7 +364,7 @@ static int DetectHttpUATestSigParse(const char *sig, const bool expect) } /** - * \test Test that a signature containting a http_user_agent is correctly parsed + * \test Test that a signature containing a http_user_agent is correctly parsed * and the keyword is registered. */ static int DetectHttpUATest01(void) diff --git a/src/tests/detect-tls-certs.c b/src/tests/detect-tls-certs.c index 9f4d401bcb..19b5436dd9 100644 --- a/src/tests/detect-tls-certs.c +++ b/src/tests/detect-tls-certs.c @@ -28,7 +28,7 @@ /** * \test Test that a signature containing tls.certs is correctly parsed - * and that the keyword is registred. + * and that the keyword is registered. */ static int DetectTlsCertsTest01(void) { diff --git a/src/tests/detect.c b/src/tests/detect.c index f3fa1c1a10..939de8a6de 100644 --- a/src/tests/detect.c +++ b/src/tests/detect.c @@ -3318,7 +3318,7 @@ static int SigTest36ContentAndIsdataatKeywords01 (void) { int result = 0; - // Buid and decode the packet + // Build and decode the packet uint8_t raw_eth [] = { 0x00,0x25,0x00,0x9e,0xfa,0xfe,0x00,0x02,0xcf,0x74,0xfe,0xe1,0x08,0x00,0x45,0x00 @@ -3436,7 +3436,7 @@ static int SigTest37ContentAndIsdataatKeywords02 (void) { int result = 0; - // Buid and decode the packet + // Build and decode the packet uint8_t raw_eth [] = { 0x00,0x25,0x00,0x9e,0xfa,0xfe,0x00,0x02,0xcf,0x74,0xfe,0xe1,0x08,0x00,0x45,0x00 @@ -3626,7 +3626,7 @@ end: /** * \test SigTest42NoPayloadInspection is a test to check that when PKT_NOPAYLOAD_INSPECTION - * flasg is set, we don't need to inspect the packet contents. + * flag is set, we don't need to inspect the packet contents. */ static int SigTest40NoPayloadInspection02(void) diff --git a/src/tests/stream-tcp.c b/src/tests/stream-tcp.c index 8885423dec..033a47c8b3 100644 --- a/src/tests/stream-tcp.c +++ b/src/tests/stream-tcp.c @@ -145,7 +145,7 @@ static int StreamTcpTest02(void) } /** - * \test Test the setting up a TCP session when we missed the intial + * \test Test the setting up a TCP session when we missed the initial * SYN packet of the session. The session is setup only if midstream * sessions are allowed to setup. * @@ -219,7 +219,7 @@ end: } /** - * \test Test the setting up a TCP session when we missed the intial + * \test Test the setting up a TCP session when we missed the initial * SYN/ACK packet of the session. The session is setup only if * midstream sessions are allowed to setup. * @@ -286,7 +286,7 @@ end: } /** - * \test Test the setting up a TCP session when we missed the intial + * \test Test the setting up a TCP session when we missed the initial * 3WHS packet of the session. The session is setup only if * midstream sessions are allowed to setup. * @@ -509,7 +509,7 @@ static int StreamTcpTest07(void) } /** - * \test Test the working on PAWS. The packet will be accpeted by engine as + * \test Test the working on PAWS. The packet will be accepted by engine as * the timestamp is valid and it is in window. */ @@ -1962,7 +1962,7 @@ end: } /** \test Test the various OS policies based on different IP addresses from - confuguration defined in 'dummy_conf_string1' */ + configuration defined in 'dummy_conf_string1' */ static int StreamTcpTest18(void) { StreamTcpThread stt; @@ -2009,7 +2009,7 @@ end: return ret; } /** \test Test the various OS policies based on different IP addresses from - confuguration defined in 'dummy_conf_string1' */ + configuration defined in 'dummy_conf_string1' */ static int StreamTcpTest19(void) { StreamTcpThread stt; @@ -2059,7 +2059,7 @@ end: return ret; } /** \test Test the various OS policies based on different IP addresses from - confuguration defined in 'dummy_conf_string1' */ + configuration defined in 'dummy_conf_string1' */ static int StreamTcpTest20(void) { StreamTcpThread stt; @@ -2109,7 +2109,7 @@ end: return ret; } /** \test Test the various OS policies based on different IP addresses from - confuguration defined in 'dummy_conf_string1' */ + configuration defined in 'dummy_conf_string1' */ static int StreamTcpTest21(void) { StreamTcpThread stt; @@ -2159,7 +2159,7 @@ end: return ret; } /** \test Test the various OS policies based on different IP addresses from - confuguration defined in 'dummy_conf_string1' */ + configuration defined in 'dummy_conf_string1' */ static int StreamTcpTest22(void) { StreamTcpThread stt; @@ -2692,7 +2692,7 @@ static int StreamTcpTest37(void) } if (((TcpSession *)p->flow->protoctx)->state != TCP_ESTABLISHED) { - printf("the TCP state should be TCP_ESTABLISEHD\n"); + printf("the TCP state should be TCP_ESTABLISHED\n"); goto end; }