File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,12 @@ void test_empty_basic_stacktrace() {
257
257
BOOST_TEST (!(st > st_t (0 , 0 )));
258
258
}
259
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
+
260
266
int main () {
261
267
test_deeply_nested_namespaces ();
262
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
281
287
return boost::report_errors ();
282
288
}
You can’t perform that action at this time.
0 commit comments