mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-02 23:35:23 +00:00
[rt25901_atf] Indentation cleanup of mdb6_unittest.c
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
SUBDIRS = .
|
||||
|
||||
AM_CPPFLAGS = $(ATF_CFLAGS) -I$(top_srcdir)/includes
|
||||
AM_CPPFLAGS = $(ATF_CFLAGS) -std=c99 -I$(top_srcdir)/includes
|
||||
|
||||
ATF_TESTS = alloc_unittest
|
||||
|
||||
|
@@ -80,4 +80,13 @@ make check
|
||||
atf-run | atf-report
|
||||
@endverbatim
|
||||
|
||||
@section testsAtfCoding ATF Coding Guidelines
|
||||
|
||||
As unit-tests code is an evironment that works under a different regime than
|
||||
the production code, there are slight differences, compared to standard
|
||||
coding guidelines. In particular:
|
||||
|
||||
- The code is written using C99. Double slash comments are allowed.
|
||||
- Please do not use tabs. Use 4 spaces for each indent level.
|
||||
|
||||
*/
|
||||
|
@@ -30,18 +30,9 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define TEST1
|
||||
#define TEST2
|
||||
#define TEST3
|
||||
#define TEST4
|
||||
#define TEST5
|
||||
#define TEST6
|
||||
//#define TEST7
|
||||
//#define TEST8
|
||||
//#define TEST9
|
||||
|
||||
void build_prefix6(struct in6_addr *pref, const struct in6_addr *net_start_pref,
|
||||
int pool_bits, int pref_bits, const struct data_string *input);
|
||||
int pool_bits, int pref_bits,
|
||||
const struct data_string *input);
|
||||
|
||||
ATF_TC(iaaddr_basic);
|
||||
ATF_TC_HEAD(iaaddr_basic, tc)
|
||||
@@ -82,8 +73,8 @@ ATF_TC_BODY(iaaddr_basic, tc)
|
||||
ATF_TC(iaaddr_negative);
|
||||
ATF_TC_HEAD(iaaddr_negative, tc)
|
||||
{
|
||||
atf_tc_set_md_var(tc, "descr", "This test case checks that IAADDR option "
|
||||
"code can handle various negative scenarios.");
|
||||
atf_tc_set_md_var(tc, "descr", "This test case checks that IAADDR "
|
||||
"option code can handle various negative scenarios.");
|
||||
}
|
||||
ATF_TC_BODY(iaaddr_negative, tc)
|
||||
{
|
||||
|
Reference in New Issue
Block a user