| Index: tests/thread_suspension/suspend_test_host.c
|
| diff --git a/tests/thread_suspension/suspend_test_host.c b/tests/thread_suspension/suspend_test_host.c
|
| index ab56830de48eb53b2f4a5226920847a97e18e6ac..3f84bda8bab2716268b8cc802fdd746b515468c3 100644
|
| --- a/tests/thread_suspension/suspend_test_host.c
|
| +++ b/tests/thread_suspension/suspend_test_host.c
|
| @@ -8,20 +8,19 @@
|
|
|
| #include "native_client/src/include/nacl_assert.h"
|
| #include "native_client/src/include/portability_io.h"
|
| -#include "native_client/src/shared/gio/gio.h"
|
| #include "native_client/src/shared/platform/nacl_check.h"
|
| #include "native_client/src/shared/platform/nacl_exit.h"
|
| #include "native_client/src/shared/platform/nacl_log.h"
|
| #include "native_client/src/shared/platform/nacl_sync_checked.h"
|
| #include "native_client/src/trusted/service_runtime/include/bits/mman.h"
|
| #include "native_client/src/trusted/service_runtime/include/bits/nacl_syscalls.h"
|
| +#include "native_client/src/trusted/service_runtime/load_file.h"
|
| #include "native_client/src/trusted/service_runtime/nacl_all_modules.h"
|
| #include "native_client/src/trusted/service_runtime/nacl_app.h"
|
| #include "native_client/src/trusted/service_runtime/nacl_app_thread.h"
|
| #include "native_client/src/trusted/service_runtime/nacl_copy.h"
|
| #include "native_client/src/trusted/service_runtime/nacl_signal.h"
|
| #include "native_client/src/trusted/service_runtime/nacl_syscall_common.h"
|
| -#include "native_client/src/trusted/service_runtime/nacl_valgrind_hooks.h"
|
| #include "native_client/src/trusted/service_runtime/sel_ldr.h"
|
| #include "native_client/src/trusted/service_runtime/thread_suspension.h"
|
| #include "native_client/tests/common/register_set.h"
|
| @@ -373,7 +372,6 @@ static void TestGettingRegisterSnapshotInSyscall(struct NaClApp *nap) {
|
|
|
| int main(int argc, char **argv) {
|
| struct NaClApp app;
|
| - struct GioMemoryFileSnapshot gio_file;
|
|
|
| NaClHandleBootstrapArgs(&argc, &argv);
|
|
|
| @@ -391,10 +389,8 @@ int main(int argc, char **argv) {
|
| NaClLog(LOG_FATAL, "Expected 1 argument: executable filename\n");
|
| }
|
|
|
| - NaClFileNameForValgrind(argv[1]);
|
| - CHECK(GioMemoryFileSnapshotCtor(&gio_file, argv[1]));
|
| CHECK(NaClAppCtor(&app));
|
| - CHECK(NaClAppLoadFile((struct Gio *) &gio_file, &app) == LOAD_OK);
|
| + CHECK(NaClAppLoadFileFromFilename(&app, argv[1]) == LOAD_OK);
|
| NaClAppInitialDescriptorHookup(&app);
|
| CHECK(NaClAppPrepareToLaunch(&app) == LOAD_OK);
|
|
|
|
|