@@ -41,9 +41,9 @@ void check_testcase(testcase test,
41
41
42
42
TEST (WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
43
43
44
- #if 0
45
44
// clang-format off
46
45
std::vector<testcase> doubleword_max = {
46
+ #if 0
47
47
{
48
48
{0x7fffffffe83b, 1},
49
49
{{0x7fffffffe83b, 1}}
@@ -52,6 +52,7 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
52
52
{0x7fffffffe838, 2},
53
53
{{0x7fffffffe838, 2}}
54
54
},
55
+ #endif
55
56
{
56
57
{0x1012 , 8 },
57
58
{{0x1010 , 8 }, {0x1018 , 8 }}
@@ -78,22 +79,18 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
78
79
},
79
80
};
80
81
// clang-format on
81
- printf("Running doubleword max test cases\n");
82
82
for (testcase test : doubleword_max) {
83
83
addr_t user_addr = test.user .addr ;
84
84
size_t user_size = test.user .size ;
85
85
size_t min_byte_size = 1 ;
86
86
size_t max_byte_size = 8 ;
87
87
size_t address_byte_size = 8 ;
88
- printf("Calling with addr 0x%llx size %zu\n", user_addr, user_size);
89
88
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints (
90
89
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
91
90
92
- printf("Checking returned values\n");
93
91
check_testcase (test, result, min_byte_size, max_byte_size,
94
92
address_byte_size);
95
93
}
96
- #endif
97
94
98
95
// clang-format off
99
96
std::vector<testcase> word_max = {
@@ -107,18 +104,15 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
107
104
},
108
105
};
109
106
// clang-format on
110
- printf (" Running word max test cases\n " );
111
107
for (testcase test : word_max) {
112
108
addr_t user_addr = test.user .addr ;
113
109
size_t user_size = test.user .size ;
114
110
size_t min_byte_size = 1 ;
115
111
size_t max_byte_size = 4 ;
116
112
size_t address_byte_size = 4 ;
117
- printf (" Calling with addr 0x%llx size %zu\n " , user_addr, user_size);
118
113
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints (
119
114
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
120
115
121
- printf (" Checking returned values\n " );
122
116
check_testcase (test, result, min_byte_size, max_byte_size,
123
117
address_byte_size);
124
118
}
@@ -166,18 +160,15 @@ TEST(WatchpointAlgorithmsTests, PowerOf2Watchpoints) {
166
160
},
167
161
};
168
162
// clang-format on
169
- printf (" Running word twogig test cases\n " );
170
163
for (testcase test : twogig_max) {
171
164
addr_t user_addr = test.user .addr ;
172
165
size_t user_size = test.user .size ;
173
166
size_t min_byte_size = 1 ;
174
167
size_t max_byte_size = INT32_MAX;
175
168
size_t address_byte_size = 8 ;
176
- printf (" Calling with addr 0x%llx size %zu\n " , user_addr, user_size);
177
169
auto result = WatchpointAlgorithmsTest::PowerOf2Watchpoints (
178
170
user_addr, user_size, min_byte_size, max_byte_size, address_byte_size);
179
171
180
- printf (" Checking returned values\n " );
181
172
check_testcase (test, result, min_byte_size, max_byte_size,
182
173
address_byte_size);
183
174
}
0 commit comments