From: Radoslaw Zarzynski Date: Mon, 12 Dec 2022 19:12:11 +0000 (+0000) Subject: crimson/test: verify nesting of interruptors X-Git-Tag: v18.1.0~260^2~8 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c08d06fb0da8e341d8cbbca5685cd6343098ba53;p=ceph.git crimson/test: verify nesting of interruptors It doesn't work. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/test/crimson/test_interruptible_future.cc b/src/test/crimson/test_interruptible_future.cc index 2d9ac7b750ec6..bb938de24e77f 100644 --- a/src/test/crimson/test_interruptible_future.cc +++ b/src/test/crimson/test_interruptible_future.cc @@ -261,6 +261,24 @@ TEST_F(seastar_test_suite_t, interruptible_async) }); } +TEST_F(seastar_test_suite_t, DISABLED_nested_interruptors) +{ + run_async([] { + base_ertr::future<> ret = with_intr( + []() { + return base_iertr::now().safe_then_interruptible([]() { + return with_intr( + []() { + return base_iertr::now(); + } + ); + }); + } + ); + ret.unsafe_get0(); + }); +} + #if 0 // This seems to cause a hang in the gcc-9 linker on bionic TEST_F(seastar_test_suite_t, handle_error)