Skip to content

Commit e160d2c

Browse files
committed
Fixing another missed warning location.
1 parent 663e7e8 commit e160d2c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Release/tests/functional/pplx/pplx_test/pplxtask_tests.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,9 +1812,9 @@ TEST(TestNestedTasks)
18121812
}
18131813

18141814
{
1815-
task<int> nestedTask;
1816-
task<int> unwrap([&]() -> task<int> {
1817-
nestedTask = task<int>([]() -> int {
1815+
task<void> nestedTask;
1816+
task<void> unwrap([&]() -> task<void> {
1817+
nestedTask = task<void>([]() {
18181818
cancel_current_task();
18191819
});
18201820
return nestedTask;
@@ -1888,7 +1888,7 @@ TEST(PPL_Conversions_Exceptions)
18881888
}
18891889
catch(int m)
18901890
{
1891-
VERIFY_ARE_EQUAL(m,2);
1891+
VERIFY_ARE_EQUAL(m,42);
18921892
}
18931893

18941894
pplx::task<int> t3 = pplx::concurrency_task_to_pplx_task(t2);
@@ -1899,7 +1899,7 @@ TEST(PPL_Conversions_Exceptions)
18991899
}
19001900
catch(int m)
19011901
{
1902-
VERIFY_ARE_EQUAL(m,2);
1902+
VERIFY_ARE_EQUAL(m,42);
19031903
}
19041904
}
19051905

0 commit comments

Comments
 (0)