| Index: runtime/vm/snapshot_test.cc
|
| diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc
|
| index 915358a6a1c154f55e8f304bbb219d3d5616b3d6..adc8e1ffd2c297f0c3d21d3262e549200dd6a92b 100644
|
| --- a/runtime/vm/snapshot_test.cc
|
| +++ b/runtime/vm/snapshot_test.cc
|
| @@ -2925,7 +2925,7 @@ UNIT_TEST_CASE(PostCObject) {
|
| " var port = new RawReceivePort();\n"
|
| " var sendPort = port.sendPort;\n"
|
| " port.handler = (message) {\n"
|
| - " if (messageCount < 8) {\n"
|
| + " if (messageCount < 9) {\n"
|
| " exception = '$exception${message}';\n"
|
| " } else {\n"
|
| " exception = '$exception${message.length}';\n"
|
| @@ -2934,7 +2934,7 @@ UNIT_TEST_CASE(PostCObject) {
|
| " }\n"
|
| " }\n"
|
| " messageCount++;\n"
|
| - " if (messageCount == 9) throw new Exception(exception);\n"
|
| + " if (messageCount == 10) throw new Exception(exception);\n"
|
| " };\n"
|
| " return sendPort;\n"
|
| "}\n";
|
| @@ -2973,6 +2973,10 @@ UNIT_TEST_CASE(PostCObject) {
|
| object.value.as_string = const_cast<char*>("æøå");
|
| EXPECT(Dart_PostCObject(port_id, &object));
|
|
|
| + object.type = Dart_CObject_kString;
|
| + object.value.as_string = const_cast<char*>("");
|
| + EXPECT(Dart_PostCObject(port_id, &object));
|
| +
|
| object.type = Dart_CObject_kDouble;
|
| object.value.as_double = 3.14;
|
| EXPECT(Dart_PostCObject(port_id, &object));
|
|
|