OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 if (test_type_ != kDontCrash) { | 218 if (test_type_ != kDontCrash) { |
219 // Handle the child’s crash. Further validation will be done in | 219 // Handle the child’s crash. Further validation will be done in |
220 // CatchMachException(). | 220 // CatchMachException(). |
221 mach_msg_return_t mr = | 221 mach_msg_return_t mr = |
222 MachMessageServer::Run(this, | 222 MachMessageServer::Run(this, |
223 LocalPort(), | 223 LocalPort(), |
224 MACH_MSG_OPTION_NONE, | 224 MACH_MSG_OPTION_NONE, |
225 MachMessageServer::kOneShot, | 225 MachMessageServer::kOneShot, |
226 MachMessageServer::kBlocking, | 226 MachMessageServer::kBlocking, |
| 227 MachMessageServer::kReceiveLargeError, |
227 MACH_MSG_TIMEOUT_NONE); | 228 MACH_MSG_TIMEOUT_NONE); |
228 EXPECT_EQ(MACH_MSG_SUCCESS, mr) | 229 EXPECT_EQ(MACH_MSG_SUCCESS, mr) |
229 << MachErrorMessage(mr, "MachMessageServer::Run"); | 230 << MachErrorMessage(mr, "MachMessageServer::Run"); |
230 | 231 |
231 switch (test_type_) { | 232 switch (test_type_) { |
232 case kCrashAbort: | 233 case kCrashAbort: |
233 SetExpectedChildTermination(kTerminationSignal, SIGABRT); | 234 SetExpectedChildTermination(kTerminationSignal, SIGABRT); |
234 break; | 235 break; |
235 | 236 |
236 case kCrashDyld: | 237 case kCrashDyld: |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 | 326 |
326 TEST(MachOImageAnnotationsReader, CrashDyld) { | 327 TEST(MachOImageAnnotationsReader, CrashDyld) { |
327 TestMachOImageAnnotationsReader test_mach_o_image_annotations_reader( | 328 TestMachOImageAnnotationsReader test_mach_o_image_annotations_reader( |
328 TestMachOImageAnnotationsReader::kCrashDyld); | 329 TestMachOImageAnnotationsReader::kCrashDyld); |
329 test_mach_o_image_annotations_reader.Run(); | 330 test_mach_o_image_annotations_reader.Run(); |
330 } | 331 } |
331 | 332 |
332 } // namespace | 333 } // namespace |
333 } // namespace test | 334 } // namespace test |
334 } // namespace crashpad | 335 } // namespace crashpad |
OLD | NEW |