summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jason@molenda.com>2024-01-31 23:17:52 -0800
committerJason Molenda <jason@molenda.com>2024-01-31 23:18:18 -0800
commit54f324f377a92a64fcc5c1d401da9b07bf50a2f1 (patch)
treefdd9f86a082b3f041b2dfebc95ba73429429dc76
parent48f8b74c35991fd3842e135481960449b1e25363 (diff)
Trying to refine which test is crashing on arm-ubuntu.
-rw-r--r--lldb/unittests/Breakpoint/WatchpointAlgorithmsTests.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/lldb/unittests/Breakpoint/WatchpointAlgorithmsTests.cpp b/lldb/unittests/Breakpoint/WatchpointAlgorithmsTests.cpp
index bcef6d332c3f..d100bb000ebd 100644
--- a/lldb/unittests/Breakpoint/WatchpointAlgorithmsTests.cpp
+++ b/lldb/unittests/Breakpoint/WatchpointAlgorithmsTests.cpp
@@ -41,9 +41,9 @@ void check_testcase(testcase test,
TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
-#if 0
// clang-format off
std::vector<testcase> doubleword_max = {
+#if 0
{
{0x7fffffffe83b, 1},
{{0x7fffffffe83b, 1}}
@@ -52,6 +52,7 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
{0x7fffffffe838, 2},
{{0x7fffffffe838, 2}}
},
+#endif
{
{0x1012, 8},
{{0x1010, 8}, {0x1018, 8}}
@@ -78,22 +79,18 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
},
};
// clang-format on
- printf("Running doubleword max test cases\n");
for (testcase test : doubleword_max) {
addr_t user_addr = test.user.addr;
size_t user_size = test.user.size;
size_t min_byte_size = 1;
size_t max_byte_size = 8;
size_t address_byte_size = 8;
- printf("Calling with addr 0x%llx size %zu\n", user_addr, user_size);
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints(
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
- printf("Checking returned values\n");
check_testcase(test, result, min_byte_size, max_byte_size,
address_byte_size);
}
-#endif
// clang-format off
std::vector<testcase> word_max = {
@@ -107,18 +104,15 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
},
};
// clang-format on
- printf("Running word max test cases\n");
for (testcase test : word_max) {
addr_t user_addr = test.user.addr;
size_t user_size = test.user.size;
size_t min_byte_size = 1;
size_t max_byte_size = 4;
size_t address_byte_size = 4;
- printf("Calling with addr 0x%llx size %zu\n", user_addr, user_size);
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints(
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
- printf("Checking returned values\n");
check_testcase(test, result, min_byte_size, max_byte_size,
address_byte_size);
}
@@ -166,18 +160,15 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
},
};
// clang-format on
- printf("Running word twogig test cases\n");
for (testcase test : twogig_max) {
addr_t user_addr = test.user.addr;
size_t user_size = test.user.size;
size_t min_byte_size = 1;
size_t max_byte_size = INT32_MAX;
size_t address_byte_size = 8;
- printf("Calling with addr 0x%llx size %zu\n", user_addr, user_size);
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints(
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
- printf("Checking returned values\n");
check_testcase(test, result, min_byte_size, max_byte_size,
address_byte_size);
}