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

Unified Diff: runtime/bin/run_vm_tests_fuchsia.cc

Issue 2428373005: Remove dependency on Fuchsia's runtime library. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/eventhandler_fuchsia.cc ('k') | runtime/vm/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/run_vm_tests_fuchsia.cc
diff --git a/runtime/bin/run_vm_tests_fuchsia.cc b/runtime/bin/run_vm_tests_fuchsia.cc
index 4e0ba4db711e9786d8eee4d3b0a6bdabcafaec5d..a974860eaae56e676cc0cb0c10fee1ec5664539d 100644
--- a/runtime/bin/run_vm_tests_fuchsia.cc
+++ b/runtime/bin/run_vm_tests_fuchsia.cc
@@ -5,12 +5,11 @@
#include <fcntl.h>
#include <launchpad/launchpad.h>
#include <launchpad/vmo.h>
+#include <magenta/status.h>
#include <magenta/syscalls.h>
#include <magenta/syscalls/object.h>
#include <mxio/util.h>
#include <pthread.h>
-#include <runtime/status.h>
-#include <runtime/sysinfo.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -141,15 +140,13 @@ static bool isBug(const char* test) {
return contains(kBugs, sizeof(kBugs) / sizeof(kBugs[0]), test);
}
-
#define RETURN_IF_ERROR(status) \
if (status < 0) { \
- fprintf(stderr, "%s:%d: Magenta call failed: %s\n", \
- __FILE__, __LINE__, mx_strstatus(static_cast<mx_status_t>(status))); \
+ fprintf(stderr, "%s:%d: Magenta call failed: %s\n", __FILE__, __LINE__, \
+ mx_status_get_string(static_cast<mx_status_t>(status))); \
fflush(0); \
return status; \
- } \
-
+ }
// This is mostly taken from //magenta/system/uapp/mxsh with the addtion of
// launchpad_add_pipe calls to setup pipes for stdout and stderr.
« no previous file with comments | « runtime/bin/eventhandler_fuchsia.cc ('k') | runtime/vm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698