+2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
+
+ * misc/tst-efgcvt.c: Include support/check.h and
+ support/test-driver.c. Do not include test-skeleton.c.
+ (error_count): Remove.
+ (output_error): Replace increments to error_count with calls to
+ support_record_failure.
+ (output_r_error): Likewise.
+ (special): Likewise.
+ (do_test): Unconditionally return zero.
+ (TEST_FUNCTION): Remove.
+
2018-11-09 Joseph Myers <joseph@codesourcery.com>
* conform/Makefile ($(conformtest-header-tests)): Create $(@D),
#include <stdlib.h>
#include <string.h>
-int error_count;
+#include <support/check.h>
typedef struct
{
res_p, res_decpt, res_sign);
printf ("Should be p: \"%s\", decpt: %d, sign: %d\n",
exp_p, exp_decpt, exp_sign);
- ++error_count;
+ support_record_failure ();
}
res_p, res_decpt, res_sign, res_return);
printf ("Should be buf: \"%s\", decpt: %d, sign: %d\n",
exp_p, exp_decpt, exp_sign);
- ++error_count;
+ support_record_failure ();
}
static void
if (res == 0)
{
printf ("ecvt_r with a too small buffer was succesful.\n");
- ++error_count;
+ support_record_failure ();
}
res = fcvt_r (123.456, 10, &decpt, &sign, buf, 1);
if (res == 0)
{
printf ("fcvt_r with a too small buffer was succesful.\n");
- ++error_count;
+ support_record_failure ();
}
}
test_r (fcvt_tests, fcvt_r, "fcvt_r");
special ();
- return error_count;
+ return 0;
}
-#define TEST_FUNCTION do_test ()
-#include "../test-skeleton.c"
+#include <support/test-driver.c>