[Lldb-commits] [lldb] 54f324f - Trying to refine which test is crashing on arm-ubuntu.
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 31 23:18:26 PST 2024
Author: Jason Molenda
Date: 2024-01-31T23:18:18-08:00
New Revision: 54f324f377a92a64fcc5c1d401da9b07bf50a2f1
URL: https://github.com/llvm/llvm-project/commit/54f324f377a92a64fcc5c1d401da9b07bf50a2f1
DIFF: https://github.com/llvm/llvm-project/commit/54f324f377a92a64fcc5c1d401da9b07bf50a2f1.diff
LOG: Trying to refine which test is crashing on arm-ubuntu.
Added:
Modified:
lldb/unittests/Breakpoint/WatchpointAlgorithmsTests.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Breakpoint/WatchpointAlgorithmsTests.cpp b/lldb/unittests/Breakpoint/WatchpointAlgorithmsTests.cpp
index bcef6d332c3f8..d100bb000ebd1 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);
}
More information about the lldb-commits
mailing list