We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2820ed3 commit 4352901Copy full SHA for 4352901
test/test.cpp
@@ -257,6 +257,12 @@ void test_empty_basic_stacktrace() {
257
BOOST_TEST(!(st > st_t(0, 0)));
258
}
259
260
+void test_stacktrace_limits()
261
+{
262
+ BOOST_TEST_EQ(boost::stacktrace::stacktrace(0, 1).size(), 1);
263
+ BOOST_TEST_EQ(boost::stacktrace::stacktrace(1, 1).size(), 1);
264
+}
265
+
266
int main() {
267
test_deeply_nested_namespaces();
268
test_frames_string_data_validity();
@@ -275,8 +281,8 @@ int main() {
275
281
test_comparisons_base(make_some_stacktrace1(), make_some_stacktrace2());
276
282
277
283
test_nested<260>(false);
278
- BOOST_TEST(boost::stacktrace::stacktrace(0, 1).size() == 1);
279
- BOOST_TEST(boost::stacktrace::stacktrace(1, 1).size() == 1);
284
285
+ test_stacktrace_limits();
280
286
287
return boost::report_errors();
288
0 commit comments