apply the modified style
This commit is contained in:
@@ -28,11 +28,10 @@
|
||||
|
||||
/* parse http time stamp */
|
||||
static void
|
||||
isc_time_parsehttptimestamp_test(void **state)
|
||||
{
|
||||
isc_time_parsehttptimestamp_test(void **state) {
|
||||
isc_result_t result;
|
||||
isc_time_t t, x;
|
||||
char buf[ISC_FORMATHTTPTIMESTAMP_SIZE];
|
||||
isc_time_t t, x;
|
||||
char buf[ISC_FORMATHTTPTIMESTAMP_SIZE];
|
||||
|
||||
UNUSED(state);
|
||||
|
||||
@@ -48,11 +47,10 @@ isc_time_parsehttptimestamp_test(void **state)
|
||||
|
||||
/* print UTC in ISO8601 */
|
||||
static void
|
||||
isc_time_formatISO8601_test(void **state)
|
||||
{
|
||||
isc_time_formatISO8601_test(void **state) {
|
||||
isc_result_t result;
|
||||
isc_time_t t;
|
||||
char buf[64];
|
||||
isc_time_t t;
|
||||
char buf[64];
|
||||
|
||||
UNUSED(state);
|
||||
|
||||
@@ -85,11 +83,10 @@ isc_time_formatISO8601_test(void **state)
|
||||
|
||||
/* print UTC in ISO8601 with milliseconds */
|
||||
static void
|
||||
isc_time_formatISO8601ms_test(void **state)
|
||||
{
|
||||
isc_time_formatISO8601ms_test(void **state) {
|
||||
isc_result_t result;
|
||||
isc_time_t t;
|
||||
char buf[64];
|
||||
isc_time_t t;
|
||||
char buf[64];
|
||||
|
||||
UNUSED(state);
|
||||
|
||||
@@ -123,11 +120,10 @@ isc_time_formatISO8601ms_test(void **state)
|
||||
|
||||
/* print local time in ISO8601 */
|
||||
static void
|
||||
isc_time_formatISO8601L_test(void **state)
|
||||
{
|
||||
isc_time_formatISO8601L_test(void **state) {
|
||||
isc_result_t result;
|
||||
isc_time_t t;
|
||||
char buf[64];
|
||||
isc_time_t t;
|
||||
char buf[64];
|
||||
|
||||
UNUSED(state);
|
||||
|
||||
@@ -159,11 +155,10 @@ isc_time_formatISO8601L_test(void **state)
|
||||
|
||||
/* print local time in ISO8601 with milliseconds */
|
||||
static void
|
||||
isc_time_formatISO8601Lms_test(void **state)
|
||||
{
|
||||
isc_time_formatISO8601Lms_test(void **state) {
|
||||
isc_result_t result;
|
||||
isc_time_t t;
|
||||
char buf[64];
|
||||
isc_time_t t;
|
||||
char buf[64];
|
||||
|
||||
UNUSED(state);
|
||||
|
||||
@@ -196,11 +191,10 @@ isc_time_formatISO8601Lms_test(void **state)
|
||||
|
||||
/* print UTC time as yyyymmddhhmmsssss */
|
||||
static void
|
||||
isc_time_formatshorttimestamp_test(void **state)
|
||||
{
|
||||
isc_time_formatshorttimestamp_test(void **state) {
|
||||
isc_result_t result;
|
||||
isc_time_t t;
|
||||
char buf[64];
|
||||
isc_time_t t;
|
||||
char buf[64];
|
||||
|
||||
UNUSED(state);
|
||||
|
||||
@@ -226,8 +220,7 @@ isc_time_formatshorttimestamp_test(void **state)
|
||||
}
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
main(void) {
|
||||
const struct CMUnitTest tests[] = {
|
||||
cmocka_unit_test(isc_time_parsehttptimestamp_test),
|
||||
cmocka_unit_test(isc_time_formatISO8601_test),
|
||||
@@ -245,8 +238,7 @@ main(void)
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
main(void) {
|
||||
printf("1..0 # Skipped: cmocka not available\n");
|
||||
return (0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user