File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Release/tests/functional/pplx/pplx_test Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1360,6 +1360,12 @@ struct TestException2
1360
1360
{
1361
1361
};
1362
1362
1363
+ // CodePlex 292
1364
+ static int ThrowFunc ()
1365
+ {
1366
+ throw 42 ;
1367
+ }
1368
+
1363
1369
TEST (TestContinuationsWithTask)
1364
1370
{
1365
1371
{
@@ -1403,9 +1409,7 @@ TEST(TestContinuationsWithTask)
1403
1409
{
1404
1410
bool gotException = true ;
1405
1411
int n2 = 0 ;
1406
- task<int > t ([&]() -> int {
1407
- throw 42 ;
1408
- });
1412
+ task<int > t (throwFunc);
1409
1413
t.then ([&] (task<int > ti) {
1410
1414
try
1411
1415
{
@@ -1875,7 +1879,7 @@ TEST(PPL_Conversions_Nested)
1875
1879
1876
1880
TEST (PPL_Conversions_Exceptions)
1877
1881
{
1878
- pplx::task<int > t1 ([]() -> int { throw 2 ;} );
1882
+ pplx::task<int > t1 (ThrowFunc );
1879
1883
concurrency::task<int > t2 = pplx::pplx_task_to_concurrency_task (t1);
1880
1884
try
1881
1885
{
You can’t perform that action at this time.
0 commit comments