1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

benchtests: Use TEST_NAME instead of hardcoding memcpy

The hardcoded 'memcpy' name turns up in other derived tests like
mempcpy.

       * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
       hardcoding memcpy.
       * benchtests/bench-memcpy-large.c (test_name): Likewise.
       * benchtests/bench-memcpy-random.c (test_name): Likewise.
This commit is contained in:
Siddhesh Poyarekar
2017-08-08 00:44:00 +05:30
parent d5afb38503
commit 7ee38e6040
4 changed files with 10 additions and 3 deletions

View File

@@ -1,3 +1,10 @@
2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
* benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
hardcoding memcpy.
* benchtests/bench-memcpy-large.c (test_name): Likewise.
* benchtests/bench-memcpy-random.c (test_name): Likewise.
2017-08-07 Andreas Schwab <schwab@suse.de> 2017-08-07 Andreas Schwab <schwab@suse.de>
* elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target. * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.

View File

@@ -118,7 +118,7 @@ test_main (void)
json_attr_string (&json_ctx, "timing_type", TIMING_TYPE); json_attr_string (&json_ctx, "timing_type", TIMING_TYPE);
json_attr_object_begin (&json_ctx, "functions"); json_attr_object_begin (&json_ctx, "functions");
json_attr_object_begin (&json_ctx, "memcpy"); json_attr_object_begin (&json_ctx, TEST_NAME);
json_attr_string (&json_ctx, "bench-variant", "large"); json_attr_string (&json_ctx, "bench-variant", "large");
json_array_begin (&json_ctx, "ifuncs"); json_array_begin (&json_ctx, "ifuncs");

View File

@@ -156,7 +156,7 @@ test_main (void)
json_attr_string (&json_ctx, "timing_type", TIMING_TYPE); json_attr_string (&json_ctx, "timing_type", TIMING_TYPE);
json_attr_object_begin (&json_ctx, "functions"); json_attr_object_begin (&json_ctx, "functions");
json_attr_object_begin (&json_ctx, "memcpy"); json_attr_object_begin (&json_ctx, TEST_NAME);
json_attr_string (&json_ctx, "bench-variant", "random"); json_attr_string (&json_ctx, "bench-variant", "random");
json_array_begin (&json_ctx, "ifuncs"); json_array_begin (&json_ctx, "ifuncs");

View File

@@ -136,7 +136,7 @@ test_main (void)
json_attr_string (&json_ctx, "timing_type", TIMING_TYPE); json_attr_string (&json_ctx, "timing_type", TIMING_TYPE);
json_attr_object_begin (&json_ctx, "functions"); json_attr_object_begin (&json_ctx, "functions");
json_attr_object_begin (&json_ctx, "memcpy"); json_attr_object_begin (&json_ctx, TEST_NAME);
json_attr_string (&json_ctx, "bench-variant", "default"); json_attr_string (&json_ctx, "bench-variant", "default");
json_array_begin (&json_ctx, "ifuncs"); json_array_begin (&json_ctx, "ifuncs");