EXTRA_DIST += libyasm/tests/unary.errwarn
EXTRA_DIST += libyasm/tests/unary.hex
-noinst_PROGRAMS += bitvect_test
-noinst_PROGRAMS += floatnum_test
+check_PROGRAMS += bitvect_test
+check_PROGRAMS += floatnum_test
-bitvect_test_CFLAGS =
bitvect_test_SOURCES = libyasm/tests/bitvect_test.c
-bitvect_test_LDFLAGS =
bitvect_test_LDADD = libyasm.la @LIBLTDL@ $(INTLLIBS) @LIBADD_DL@
-floatnum_test_CFLAGS =
floatnum_test_SOURCES = libyasm/tests/floatnum_test.c
-floatnum_test_LDFLAGS =
floatnum_test_LDADD = libyasm.la @LIBLTDL@ $(INTLLIBS) @LIBADD_DL@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
-# include "config.h"
+# include <config.h>
#endif
#ifdef STDC_HEADERS
#include "libyasm/bitvect.h"
static int
-test_boot()
+test_boot(void)
{
if (BitVector_Boot() != ErrCode_Ok)
return 1;
}
static int
-test_oct_small_num()
+test_oct_small_num(void)
{
Val *vals = oct_small_vals;
int i, num = sizeof(oct_small_vals)/sizeof(Val);
}
static int
-test_oct_large_num()
+test_oct_large_num(void)
{
Val *vals = oct_large_vals;
int i, num = sizeof(oct_large_vals)/sizeof(Val);
}
static int
-runtest_(char *testname, int (*testfunc)(), void (*setup)(),
- void (*teardown)())
+runtest_(const char *testname, int (*testfunc)(void), void (*setup)(void),
+ void (*teardown)(void))
{
int nf;
printf("bitvect_test: Testing libyasm bitvect for %s ... ", testname);
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
-# include "config.h"
+# include <config.h>
#endif
#ifdef STDC_HEADERS
}
static int
-test_new_normalized()
+test_new_normalized(void)
{
Init_Entry *vals = normalized_vals;
int i, num = sizeof(normalized_vals)/sizeof(Init_Entry);
}
static int
-test_new_normalized_edgecase()
+test_new_normalized_edgecase(void)
{
Init_Entry *vals = normalized_edgecase_vals;
int i, num = sizeof(normalized_edgecase_vals)/sizeof(Init_Entry);
*/
static int
-test_get_single_normalized()
+test_get_single_normalized(void)
{
unsigned char outval[4];
Init_Entry *vals = normalized_vals;
}
static int
-test_get_single_normalized_edgecase()
+test_get_single_normalized_edgecase(void)
{
unsigned char outval[4];
Init_Entry *vals = normalized_edgecase_vals;
*/
static int
-test_get_double_normalized()
+test_get_double_normalized(void)
{
unsigned char outval[8];
Init_Entry *vals = normalized_vals;
}
static int
-test_get_double_normalized_edgecase()
+test_get_double_normalized_edgecase(void)
{
unsigned char outval[8];
Init_Entry *vals = normalized_edgecase_vals;
*/
static int
-test_get_extended_normalized()
+test_get_extended_normalized(void)
{
unsigned char outval[10];
Init_Entry *vals = normalized_vals;
}
static int
-test_get_extended_normalized_edgecase()
+test_get_extended_normalized_edgecase(void)
{
unsigned char outval[10];
Init_Entry *vals = normalized_edgecase_vals;
}
static int
-runtest_(char *testname, int (*testfunc)(), void (*setup)(),
- void (*teardown)())
+runtest_(const char *testname, int (*testfunc)(void), void (*setup)(void),
+ void (*teardown)(void))
{
int nf;
printf("floatnum_test: Testing for %s ... ", testname);