]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
tests: spelling
authorVictor Julien <vjulien@oisf.net>
Sat, 6 May 2023 04:55:58 +0000 (06:55 +0200)
committerVictor Julien <vjulien@oisf.net>
Sat, 6 May 2023 12:50:43 +0000 (14:50 +0200)
src/tests/detect-http-client-body.c
src/tests/detect-http-host.c
src/tests/detect-http-server-body.c
src/tests/detect-http-stat-code.c
src/tests/detect-http-user-agent.c
src/tests/detect-tls-certs.c
src/tests/detect.c
src/tests/stream-tcp.c

index a93894eb37e3d8f54653299599981db0a53fcd3f..c87d66756b9f47fe537c9def902618a722fdc65b 100644 (file)
@@ -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)
index f3ac4400b084ff4bf9878d028849c87cde54cc50..4fbdff9b69ccc5650194b66ddc71dc5a69881b23 100644 (file)
@@ -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)
index 3f575289f4a0285a682c13c4d92bcac85b50fdad..29340fb4aa778892908eae247d0fabc7e527cb67 100644 (file)
@@ -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)
 {
index 3ed512a1bc863f093517bada53d8a197645b5f80..25a711545b39c61c2e1cec9fd47b594eb95b48ae 100644 (file)
@@ -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;
index 579fdabfc4f963dfe8407854b52f89cf050fd7c1..df9c9c1697170487fcf95048cba7607b7a0fcf34 100644 (file)
@@ -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)
index 9f4d401bcb758e6ae961776535cd3a52da28995c..19b5436dd9f0cb166ba64ab7fe477336929b919d 100644 (file)
@@ -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)
 {
index f3fa1c1a10554e15dfa3a04a21234494d72b125a..939de8a6de976dbdf6e9d5f1ac987f68c5108bf8 100644 (file)
@@ -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)
index 8885423dec74dc9d4a0a43dca193b5792e2c81e7..033a47c8b34e4debf49e6456badf3c2c094b5ce1 100644 (file)
@@ -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;
     }