@@ -77,15 +77,18 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
77
77
},
78
78
};
79
79
// clang-format on
80
+ printf (" Running doubleword max test cases\n " );
80
81
for (testcase test : doubleword_max) {
81
82
addr_t user_addr = test.user .addr ;
82
83
size_t user_size = test.user .size ;
83
84
size_t min_byte_size = 1 ;
84
85
size_t max_byte_size = 8 ;
85
86
size_t address_byte_size = 8 ;
87
+ printf (" Calling with addr 0x%llx size %zu\n " , user_addr, user_size);
86
88
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints (
87
89
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
88
90
91
+ printf (" Checking returned values\n " );
89
92
check_testcase (test, result, min_byte_size, max_byte_size,
90
93
address_byte_size);
91
94
}
@@ -102,15 +105,18 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
102
105
},
103
106
};
104
107
// clang-format on
108
+ printf (" Running word max test cases\n " );
105
109
for (testcase test : word_max) {
106
110
addr_t user_addr = test.user .addr ;
107
111
size_t user_size = test.user .size ;
108
112
size_t min_byte_size = 1 ;
109
113
size_t max_byte_size = 4 ;
110
114
size_t address_byte_size = 4 ;
115
+ printf (" Calling with addr 0x%llx size %zu\n " , user_addr, user_size);
111
116
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints (
112
117
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
113
118
119
+ printf (" Checking returned values\n " );
114
120
check_testcase (test, result, min_byte_size, max_byte_size,
115
121
address_byte_size);
116
122
}
@@ -158,15 +164,18 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
158
164
},
159
165
};
160
166
// clang-format on
167
+ printf (" Running word twogig test cases\n " );
161
168
for (testcase test : twogig_max) {
162
169
addr_t user_addr = test.user .addr ;
163
170
size_t user_size = test.user .size ;
164
171
size_t min_byte_size = 1 ;
165
172
size_t max_byte_size = INT32_MAX;
166
173
size_t address_byte_size = 8 ;
174
+ printf (" Calling with addr 0x%llx size %zu\n " , user_addr, user_size);
167
175
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints (
168
176
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
169
177
178
+ printf (" Checking returned values\n " );
170
179
check_testcase (test, result, min_byte_size, max_byte_size,
171
180
address_byte_size);
172
181
}
0 commit comments