Index: runtime/vm/dart_api_impl_test.cc |
diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc |
index 04fd8eec7e4f18cac09a0b19ab18722abffee857..d2016a43da886b9ff11d318c6d86c0e25abccf17 100644 |
--- a/runtime/vm/dart_api_impl_test.cc |
+++ b/runtime/vm/dart_api_impl_test.cc |
@@ -3637,8 +3637,13 @@ TEST_CASE(SetStickyError) { |
EXPECT(Dart_IsError(retobj)); |
EXPECT(Dart_IsUnhandledExceptionError(retobj)); |
EXPECT(!Dart_HasStickyError()); |
+ EXPECT(Dart_GetStickyError() == Dart_Null()); |
Dart_SetStickyError(retobj); |
EXPECT(Dart_HasStickyError()); |
+ EXPECT(Dart_GetStickyError() != Dart_Null()); |
+ Dart_SetStickyError(Dart_Null()); |
+ EXPECT(!Dart_HasStickyError()); |
+ EXPECT(Dart_GetStickyError() == Dart_Null()); |
} |