]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/test: verify nesting of interruptors
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 12 Dec 2022 19:12:11 +0000 (19:12 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 28 Feb 2023 16:22:05 +0000 (16:22 +0000)
It doesn't work.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/test/crimson/test_interruptible_future.cc

index 2d9ac7b750ec6e946529c91f1e9e60724896c404..bb938de24e77fd66ca076527b8b76ea61b3701c0 100644 (file)
@@ -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)