Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: runtime/bin/run_vm_tests_fuchsia.cc

Issue 2308673002: Fix build: mx_handle_get_info -> mx_object_get_info. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <fcntl.h> 5 #include <fcntl.h>
6 #include <launchpad/launchpad.h> 6 #include <launchpad/launchpad.h>
7 #include <launchpad/vmo.h> 7 #include <launchpad/vmo.h>
8 #include <magenta/syscalls.h> 8 #include <magenta/syscalls.h>
9 #include <mxio/util.h> 9 #include <mxio/util.h>
10 #include <pthread.h> 10 #include <pthread.h>
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 drain_fd(stdout_pipe, test_stdout); 267 drain_fd(stdout_pipe, test_stdout);
268 drain_fd(stderr_pipe, test_stderr); 268 drain_fd(stderr_pipe, test_stderr);
269 269
270 mx_signals_state_t state; 270 mx_signals_state_t state;
271 mx_status_t r = mx_handle_wait_one( 271 mx_status_t r = mx_handle_wait_one(
272 p, MX_SIGNAL_SIGNALED, MX_TIME_INFINITE, &state); 272 p, MX_SIGNAL_SIGNALED, MX_TIME_INFINITE, &state);
273 RETURN_IF_ERROR(r); 273 RETURN_IF_ERROR(r);
274 274
275 mx_process_info_t proc_info; 275 mx_process_info_t proc_info;
276 mx_ssize_t info_size = mx_handle_get_info( 276 mx_ssize_t info_size = mx_object_get_info(
277 p, MX_INFO_PROCESS, &proc_info, sizeof(proc_info)); 277 p, MX_INFO_PROCESS, &proc_info, sizeof(proc_info));
278 RETURN_IF_ERROR(info_size); 278 RETURN_IF_ERROR(info_size);
279 279
280 r = mx_handle_close(p); 280 r = mx_handle_close(p);
281 RETURN_IF_ERROR(r); 281 RETURN_IF_ERROR(r);
282 return proc_info.return_code; 282 return proc_info.return_code;
283 } 283 }
284 284
285 285
286 static void handle_result( 286 static void handle_result(
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 RETURN_IF_ERROR(status); 438 RETURN_IF_ERROR(status);
439 439
440 // Complain if we didn't try to run all of the tests. 440 // Complain if we didn't try to run all of the tests.
441 if (test_list_index != lines_count) { 441 if (test_list_index != lines_count) {
442 fprintf(stderr, "Failed to attempt all the tests!\n"); 442 fprintf(stderr, "Failed to attempt all the tests!\n");
443 fflush(0); 443 fflush(0);
444 return -1; 444 return -1;
445 } 445 }
446 return 0; 446 return 0;
447 } 447 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698