about summary refs log tree commit diff
path: root/math/test-float-vlen8.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-02-06 23:07:22 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-02-06 23:07:22 +0000
commita622c2db5511e9633870e3ced9fb2406e4ebdb09 (patch)
tree7ecea0e09aad5d703409012cb7695dd12f10e7d5 /math/test-float-vlen8.h
parent5cbb58493df391ac6712ac6f078569ccb96f3568 (diff)
downloadglibc-a622c2db5511e9633870e3ced9fb2406e4ebdb09.tar.gz
glibc-a622c2db5511e9633870e3ced9fb2406e4ebdb09.tar.xz
glibc-a622c2db5511e9633870e3ced9fb2406e4ebdb09.zip
Move libm-test TEST_MSG definitions to libm-test-driver.c.
Various files using the libm-test infrastructure define a TEST_MSG
macro with an informal description of the tests being run.

This patch moves this macro to libm-test-driver.c (the definition
depending on other macros already defined), so files specific to
(type, choice of whether to test inline functions or finite-math-only
functions, vector length) no longer need to define it.  This is in
preparation for replacing files such as test-float.c with per-function
test-float-<func>.c etc. automatically generated in the build
directory when tests are run.

Tested for x86_64.

	* math/libm-test-driver.c (STRX): New macro.
	(STR): Likewise.
	(STR_FLOAT): Likewise.
	(STR_VEC_LEN): Likewise.
	(TEST_MSG): Likewise.  Define here instead of expecting to be
	defined by including file.
	* math/test-double-finite.c (TEST_MSG): Remove macro.
	* math/test-double-vlen2.h (TEST_MSG): Likewise.
	* math/test-double-vlen4.h (TEST_MSG): Likewise.
	* math/test-double-vlen8.h (TEST_MSG): Likewise.
	* math/test-double.c (TEST_MSG): Likewise.
	* math/test-float-finite.c (TEST_MSG): Likewise.
	* math/test-float-vlen16.h (TEST_MSG): Likewise.
	* math/test-float-vlen4.h (TEST_MSG): Likewise.
	* math/test-float-vlen8.h (TEST_MSG): Likewise.
	* math/test-float.c (TEST_MSG): Likewise.
	* math/test-idouble.c (TEST_MSG): Likewise.
	* math/test-ifloat.c (TEST_MSG): Likewise.
	* math/test-ildouble.c (TEST_MSG): Likewise.
	* math/test-ldouble-finite.c (TEST_MSG): Likewise.
	* math/test-ldouble.c (TEST_MSG): Likewise.
Diffstat (limited to 'math/test-float-vlen8.h')
-rw-r--r--math/test-float-vlen8.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/math/test-float-vlen8.h b/math/test-float-vlen8.h
index 42e60920dd..f744dc5771 100644
--- a/math/test-float-vlen8.h
+++ b/math/test-float-vlen8.h
@@ -20,8 +20,6 @@
 #include "test-math-no-inline.h"
 #include "test-math-vector.h"
 
-#define TEST_MSG "testing float vector math (without inline functions)\n"
-
 #define EXCEPTION_TESTS_float 0
 #define ROUNDING_TESTS_float(MODE) ((MODE) == FE_TONEAREST)