time_test.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2011, 2012, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id$ */
/*! \file */
#include <config.h>
#include <atf-c.h>
#include <unistd.h>
#include "dnstest.h"
#define TEST_ORIGIN "test"
/*
* Individual unit tests
*/
/* value = 0xfffffffff <-> 19691231235959 */
}
const char *test_text = "19691231235959";
char buf[128];
dns_test_end();
}
/* value = 0x000000000 <-> 19700101000000*/
}
const char *test_text = "19700101000000";
char buf[128];
dns_test_end();
}
/* value = 0x7fffffff <-> 20380119031407 */
}
const char *test_text = "20380119031407";
char buf[128];
dns_test_end();
}
/* value = 0x80000000 <-> 20380119031408 */
}
const char *test_text = "20380119031408";
char buf[128];
dns_test_end();
}
/* value = 0xef68f5d0 <-> 19610307130000 */
}
const char *test_text = "19610307130000";
char buf[128];
dns_test_end();
}
/* value = 0x4d74d6d0 <-> 20110307130000 */
}
const char *test_text = "20110307130000";
char buf[128];
dns_test_end();
}
/*
* Main
*/
ATF_TP_ADD_TCS(tp) {
return (atf_no_error());
}