Skip to content

Commit 54f324f

Browse files
committed
Trying to refine which test is crashing on arm-ubuntu.
1 parent 48f8b74 commit 54f324f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

lldb/unittests/Breakpoint/WatchpointAlgorithmsTests.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ void check_testcase(testcase test,
4141

4242
TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
4343

44-
#if 0
4544
// clang-format off
4645
std::vector<testcase> doubleword_max = {
46+
#if 0
4747
{
4848
{0x7fffffffe83b, 1},
4949
{{0x7fffffffe83b, 1}}
@@ -52,6 +52,7 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
5252
{0x7fffffffe838, 2},
5353
{{0x7fffffffe838, 2}}
5454
},
55+
#endif
5556
{
5657
{0x1012, 8},
5758
{{0x1010, 8}, {0x1018, 8}}
@@ -78,22 +79,18 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
7879
},
7980
};
8081
// clang-format on
81-
printf("Running doubleword max test cases\n");
8282
for (testcase test : doubleword_max) {
8383
addr_t user_addr = test.user.addr;
8484
size_t user_size = test.user.size;
8585
size_t min_byte_size = 1;
8686
size_t max_byte_size = 8;
8787
size_t address_byte_size = 8;
88-
printf("Calling with addr 0x%llx size %zu\n", user_addr, user_size);
8988
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints(
9089
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
9190

92-
printf("Checking returned values\n");
9391
check_testcase(test, result, min_byte_size, max_byte_size,
9492
address_byte_size);
9593
}
96-
#endif
9794

9895
// clang-format off
9996
std::vector<testcase> word_max = {
@@ -107,18 +104,15 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
107104
},
108105
};
109106
// clang-format on
110-
printf("Running word max test cases\n");
111107
for (testcase test : word_max) {
112108
addr_t user_addr = test.user.addr;
113109
size_t user_size = test.user.size;
114110
size_t min_byte_size = 1;
115111
size_t max_byte_size = 4;
116112
size_t address_byte_size = 4;
117-
printf("Calling with addr 0x%llx size %zu\n", user_addr, user_size);
118113
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints(
119114
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
120115

121-
printf("Checking returned values\n");
122116
check_testcase(test, result, min_byte_size, max_byte_size,
123117
address_byte_size);
124118
}
@@ -166,18 +160,15 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
166160
},
167161
};
168162
// clang-format on
169-
printf("Running word twogig test cases\n");
170163
for (testcase test : twogig_max) {
171164
addr_t user_addr = test.user.addr;
172165
size_t user_size = test.user.size;
173166
size_t min_byte_size = 1;
174167
size_t max_byte_size = INT32_MAX;
175168
size_t address_byte_size = 8;
176-
printf("Calling with addr 0x%llx size %zu\n", user_addr, user_size);
177169
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints(
178170
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
179171

180-
printf("Checking returned values\n");
181172
check_testcase(test, result, min_byte_size, max_byte_size,
182173
address_byte_size);
183174
}

0 commit comments

Comments
 (0)