Unify header ordering in unit tests

Make sure all unit tests include headers in a similar order:

 1. Three headers which must be included before <cmocka.h>.
 2. System headers.
 3. UNIT_TESTING definition, followed by the <cmocka.h> header.
 4. libisc headers.
 5. Headers from other BIND libraries.
 6. Local headers.

Also make sure header file names are sorted alphabetically within each
block of #include directives.
This commit is contained in:
Michał Kępień
2019-07-30 21:08:40 +02:00
parent 59528d0e9d
commit 5381ac0fcc
21 changed files with 46 additions and 56 deletions

View File

@@ -15,16 +15,15 @@
#include <stddef.h>
#include <setjmp.h>
#include <limits.h>
#include <sched.h> /* IWYU pragma: keep */
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#define UNIT_TESTING
#include <cmocka.h>
#include <limits.h>
#include <stdbool.h>
#include <string.h>
#include <isc/mem.h>
#include <isc/platform.h>
#include <isc/result.h>