Skip to content

Commit

Permalink
Renamed try_capture_all example/test files
Browse files Browse the repository at this point in the history
  • Loading branch information
zajo committed Jan 7, 2024
1 parent 971141d commit b4093c5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ int main()
std::launch::async,
[&]
{
return leaf::try_capture_all(
[&]
{
return task();
} );
return leaf::try_capture_all(task);
} );
} );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ int main()
std::launch::async,
[&]
{
return leaf::try_capture_all(
[&]
{
return task();
} );
return leaf::try_capture_all(task);
} );
} );

Expand Down
10 changes: 5 additions & 5 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ if option_enable_unit_tests
'diagnostic_info_test3',
'diagnostic_info_test4',
'diagnostic_info_test5',
'dynamic_capture_test',
'e_errno_test',
'e_LastError_test',
'error_code_test',
Expand Down Expand Up @@ -181,6 +180,7 @@ if option_enable_unit_tests
'tls_array_alloc_test3',
'tls_array_test',
'to_variant_test',
'try_capture_all_test',
'try_catch_error_id_test',
'try_catch_system_error_test',
'try_catch_test',
Expand Down Expand Up @@ -249,15 +249,15 @@ endif
if option_enable_examples

examples = [
'dynamic_capture_result',
'error_log',
'error_trace',
'print_half'
'print_half',
'try_capture_all_result'
]
if option_exceptions
examples += [
'dynamic_capture_eh',
'exception_to_result'
'exception_to_result',
'try_capture_all_eh'
]
if option_lua
examples += [
Expand Down
6 changes: 3 additions & 3 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ run diagnostic_info_test2.cpp ;
run diagnostic_info_test3.cpp ;
run diagnostic_info_test4.cpp ;
run diagnostic_info_test5.cpp ;
run dynamic_capture_test.cpp ;
run e_errno_test.cpp ;
run e_LastError_test.cpp ;
run error_code_test.cpp ;
Expand Down Expand Up @@ -121,6 +120,7 @@ run tls_array_alloc_test2.cpp ;
run tls_array_alloc_test3.cpp ;
run tls_array_test.cpp ;
run to_variant_test.cpp ;
run try_capture_all_test.cpp ;
run try_catch_error_id_test.cpp ;
run try_catch_system_error_test.cpp ;
run try_catch_test.cpp ;
Expand Down Expand Up @@ -150,8 +150,8 @@ compile-fail _compile-fail-result_3.cpp ;
compile-fail _compile-fail-result_4.cpp ;
compile-fail _compile-fail-verbose_diagnostic_info.cpp ;

exe dynamic_capture_eh : ../example/dynamic_capture_eh.cpp : <threading>single:<build>no <exception-handling>off:<build>no <variant>leaf_debug_capture0:<build>no <variant>leaf_release_capture0:<build>no ;
exe dynamic_capture_result : ../example/dynamic_capture_result.cpp : <threading>single:<build>no <variant>leaf_debug_capture0:<build>no <variant>leaf_release_capture0:<build>no <variant>leaf_debug_embedded:<build>no <variant>leaf_release_embedded:<build>no ;
exe try_capture_all_eh : ../example/try_capture_all_eh.cpp : <threading>single:<build>no <exception-handling>off:<build>no <variant>leaf_debug_capture0:<build>no <variant>leaf_release_capture0:<build>no ;
exe try_capture_all_result : ../example/try_capture_all_result.cpp : <threading>single:<build>no <variant>leaf_debug_capture0:<build>no <variant>leaf_release_capture0:<build>no <variant>leaf_debug_embedded:<build>no <variant>leaf_release_embedded:<build>no ;
exe error_log : ../example/error_log.cpp : <exception-handling>off:<build>no ;
exe error_trace : ../example/error_trace.cpp : <exception-handling>off:<build>no ;
exe exception_to_result : ../example/exception_to_result.cpp : <exception-handling>off:<build>no ;
Expand Down
File renamed without changes.

0 comments on commit b4093c5

Please sign in to comment.