[njs] Headers cleanup in src/test missed in 835b3e817b93.

Dmitry Volyntsev xeioex at nginx.com
Fri Aug 2 13:07:11 UTC 2019


details:   https://hg.nginx.org/njs/rev/219a6024c4c8
branches:  
changeset: 1097:219a6024c4c8
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Fri Aug 02 16:05:44 2019 +0300
description:
Headers cleanup in src/test missed in 835b3e817b93.

diffstat:

 src/test/lvlhsh_unit_test.c     |  12 ++----------
 src/test/njs_benchmark.c        |   3 ++-
 src/test/njs_interactive_test.c |   3 ++-
 src/test/njs_unit_test.c        |   8 --------
 src/test/random_unit_test.c     |  10 ++--------
 src/test/rbtree_unit_test.c     |  11 ++---------
 src/test/utf8_unit_test.c       |   9 ++-------
 7 files changed, 12 insertions(+), 44 deletions(-)

diffs (131 lines):

diff -r 8e24114bc575 -r 219a6024c4c8 src/test/lvlhsh_unit_test.c
--- a/src/test/lvlhsh_unit_test.c	Fri Aug 02 15:41:21 2019 +0300
+++ b/src/test/lvlhsh_unit_test.c	Fri Aug 02 16:05:44 2019 +0300
@@ -4,16 +4,8 @@
  * Copyright (C) NGINX, Inc.
  */
 
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_sprintf.h>
-#include <njs_str.h>
-#include <njs_malloc.h>
-#include <njs_lvlhsh.h>
-#include <njs_murmur_hash.h>
-#include <njs_mp.h>
-#include <string.h>
+
+#include <njs_main.h>
 
 
 static njs_int_t
diff -r 8e24114bc575 -r 219a6024c4c8 src/test/njs_benchmark.c
--- a/src/test/njs_benchmark.c	Fri Aug 02 15:41:21 2019 +0300
+++ b/src/test/njs_benchmark.c	Fri Aug 02 16:05:44 2019 +0300
@@ -5,9 +5,10 @@
  */
 
 #include <njs.h>
+#include <njs_sprintf.h>
+
 #include <string.h>
 #include <stdlib.h>
-#include <njs_sprintf.h>
 #include <sys/resource.h>
 #include <time.h>
 
diff -r 8e24114bc575 -r 219a6024c4c8 src/test/njs_interactive_test.c
--- a/src/test/njs_interactive_test.c	Fri Aug 02 15:41:21 2019 +0300
+++ b/src/test/njs_interactive_test.c	Fri Aug 02 16:05:44 2019 +0300
@@ -5,8 +5,9 @@
  */
 
 #include <njs.h>
+#include <njs_sprintf.h>
+
 #include <string.h>
-#include <njs_sprintf.h>
 #include <sys/resource.h>
 #include <time.h>
 
diff -r 8e24114bc575 -r 219a6024c4c8 src/test/njs_unit_test.c
--- a/src/test/njs_unit_test.c	Fri Aug 02 15:41:21 2019 +0300
+++ b/src/test/njs_unit_test.c	Fri Aug 02 16:05:44 2019 +0300
@@ -4,16 +4,8 @@
  * Copyright (C) NGINX, Inc.
  */
 
-#include <njs_auto_config.h>
 
 #include <njs_main.h>
-#include <njs_lvlhsh.h>
-#include <njs_djb_hash.h>
-#include <njs_pcre.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/resource.h>
-#include <time.h>
 
 
 typedef struct {
diff -r 8e24114bc575 -r 219a6024c4c8 src/test/random_unit_test.c
--- a/src/test/random_unit_test.c	Fri Aug 02 15:41:21 2019 +0300
+++ b/src/test/random_unit_test.c	Fri Aug 02 16:05:44 2019 +0300
@@ -4,14 +4,8 @@
  * Copyright (C) NGINX, Inc.
  */
 
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_sprintf.h>
-#include <njs_str.h>
-#include <njs_random.h>
-#include <stdlib.h>
-#include <string.h>
+
+#include <njs_main.h>
 
 
 static njs_int_t
diff -r 8e24114bc575 -r 219a6024c4c8 src/test/rbtree_unit_test.c
--- a/src/test/rbtree_unit_test.c	Fri Aug 02 15:41:21 2019 +0300
+++ b/src/test/rbtree_unit_test.c	Fri Aug 02 16:05:44 2019 +0300
@@ -4,15 +4,8 @@
  * Copyright (C) NGINX, Inc.
  */
 
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_sprintf.h>
-#include <njs_str.h>
-#include <njs_rbtree.h>
-#include <njs_murmur_hash.h>
-#include <stdlib.h>
-#include <string.h>
+
+#include <njs_main.h>
 
 
 typedef struct {
diff -r 8e24114bc575 -r 219a6024c4c8 src/test/utf8_unit_test.c
--- a/src/test/utf8_unit_test.c	Fri Aug 02 15:41:21 2019 +0300
+++ b/src/test/utf8_unit_test.c	Fri Aug 02 16:05:44 2019 +0300
@@ -4,13 +4,8 @@
  * Copyright (C) NGINX, Inc.
  */
 
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_sprintf.h>
-#include <njs_str.h>
-#include <njs_utf8.h>
-#include <string.h>
+
+#include <njs_main.h>
 
 
 #define NJS_UTF8_START_TEST  0xC2


More information about the nginx-devel mailing list