From 6a7d81420eefa292e8183433535cd752cb5091e4 Mon Sep 17 00:00:00 2001
From: Roman Tsisyk <roman@tsisyk.com>
Date: Wed, 20 Jan 2016 22:23:20 +0300
Subject: [PATCH] gh-1238: add a test case to unit test

---
 test/unit/fiber.cc     | 4 ++++
 test/unit/fiber.result | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/test/unit/fiber.cc b/test/unit/fiber.cc
index 99f6ce1507..8806535a5c 100644
--- a/test/unit/fiber.cc
+++ b/test/unit/fiber.cc
@@ -74,6 +74,10 @@ fiber_join_test()
 		note("exception propagated");
 	}
 
+	fputs("#gh-1238: log uncaught errors\n", stderr);
+	fiber = fiber_new_xc("exception", exception_f);
+	fiber_wakeup(fiber);
+
 	/*
 	 * A fiber which is using exception should not
 	 * push them up the stack.
diff --git a/test/unit/fiber.result b/test/unit/fiber.result
index 51cc228311..ba1ffccf80 100644
--- a/test/unit/fiber.result
+++ b/test/unit/fiber.result
@@ -1,3 +1,5 @@
+#gh-1238: log uncaught errors
+(null): SystemError Failed to allocate 42 bytes in allocator for exception: Cannot allocate memory
 	*** fiber_join_test ***
 # exception propagated
 # cancel dead has started
-- 
GitLab