File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,12 @@ static void incrementGlobal() { ++GlobalInt; }
39
39
static void llvmTrap () { LLVM_BUILTIN_TRAP; }
40
40
static void incrementGlobalWithParam (void *) { ++GlobalInt; }
41
41
42
+ #define SKIP_WITH_KOTLIN_PATCH () \
43
+ GTEST_SKIP () << "Crash recovery from SEGFAULT disabled by Kotlin patch"
44
+
42
45
TEST(CrashRecoveryTest, Basic) {
46
+ SKIP_WITH_KOTLIN_PATCH ();
47
+
43
48
llvm::CrashRecoveryContext::Enable ();
44
49
GlobalInt = 0 ;
45
50
EXPECT_TRUE (CrashRecoveryContext ().RunSafely (incrementGlobal));
@@ -57,6 +62,8 @@ struct IncrementGlobalCleanup : CrashRecoveryContextCleanup {
57
62
static void noop () {}
58
63
59
64
TEST (CrashRecoveryTest, Cleanup) {
65
+ SKIP_WITH_KOTLIN_PATCH ();
66
+
60
67
llvm::CrashRecoveryContext::Enable ();
61
68
GlobalInt = 0 ;
62
69
{
@@ -77,6 +84,8 @@ TEST(CrashRecoveryTest, Cleanup) {
77
84
}
78
85
79
86
TEST (CrashRecoveryTest, DumpStackCleanup) {
87
+ SKIP_WITH_KOTLIN_PATCH ();
88
+
80
89
SmallString<128 > Filename;
81
90
std::error_code EC = sys::fs::createTemporaryFile (" crash" , " test" , Filename);
82
91
EXPECT_FALSE (EC);
You can’t perform that action at this time.
0 commit comments