Skip to contentSkip to conversation

perf tests: Remove duplicate bitmap test

PATCH In review Denis Efremov 2 participants 3 messages Mar 5, 2021 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 perf tests: Remove duplicate bitmap test

test_bitmap("1,3-6,8-10,24,35-37") called twice in a row. Remove the second test.

---
 tools/perf/tests/bitmap.c | 1 -
 1 file changed, 1 deletion(-)
tools/perf/tests/bitmap.c +0 -1
index 96c137360918..3320613400eb 100644
@@ -47,7 +47,6 @@ int test__bitmap_print(struct test *test __maybe_unused, int subtest __maybe_unu
 	TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3,5,7,9,11,13,15,17,19,21-40"));
 	TEST_ASSERT_VAL("failed to convert map", test_bitmap("2-5"));
 	TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3-6,8-10,24,35-37"));
-	TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3-6,8-10,24,35-37"));
 	TEST_ASSERT_VAL("failed to convert map", test_bitmap("1-10,12-20,22-30,32-40"));
 	return 0;
 }
Signature · 1 line
2.26.2
#1 lore raw

PATCH 2/2 perf tests: Remove duplicate cpumap test

cpu_map_print("1,3-6,8-10,24,35-37") called twice in a row. Remove the second test.

---
 tools/perf/tests/cpumap.c | 1 -
 1 file changed, 1 deletion(-)
tools/perf/tests/cpumap.c +0 -1
index 29c793ac7d10..f906633eae46 100644
@@ -116,7 +116,6 @@ int test__cpu_map_print(struct test *test __maybe_unused, int subtest __maybe_un
 	TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,3,5,7,9,11,13,15,17,19,21-40"));
 	TEST_ASSERT_VAL("failed to convert map", cpu_map_print("2-5"));
 	TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,3-6,8-10,24,35-37"));
-	TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1,3-6,8-10,24,35-37"));
 	TEST_ASSERT_VAL("failed to convert map", cpu_map_print("1-10,12-20,22-30,32-40"));
 	return 0;
 }
Signature · 1 line
2.26.2
Acked-by on v1 1/2
#2 lore raw
In reply to Denis Efremov
Quoted 4 lines · Denis Efremov

test_bitmap("1,3-6,8-10,24,35-37") called twice in a row. Remove the second test.

for both patches

thanks,
jirka

Quoted 19 lines
---
 tools/perf/tests/bitmap.c | 1 -
 1 file changed, 1 deletion(-)
tools/perf/tests/bitmap.c +0 -1
index 96c137360918..3320613400eb 100644
@@ -47,7 +47,6 @@ int test__bitmap_print(struct test *test __maybe_unused, int subtest __maybe_unu
 	TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3,5,7,9,11,13,15,17,19,21-40"));
 	TEST_ASSERT_VAL("failed to convert map", test_bitmap("2-5"));
 	TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3-6,8-10,24,35-37"));
-	TEST_ASSERT_VAL("failed to convert map", test_bitmap("1,3-6,8-10,24,35-37"));
 	TEST_ASSERT_VAL("failed to convert map", test_bitmap("1-10,12-20,22-30,32-40"));
 	return 0;
 }
Signature · 1 line
2.26.2