From c9efa3f9e80dc039af73903bef1c1ec43133a11a Mon Sep 17 00:00:00 2001 From: Scott Graham <scottmg@google.com> Date: Thu, 22 Nov 2018 10:22:04 -0800 Subject: [PATCH] [syscalls] Switch job-policy test to use zx_task_resume_from_exception() zx_task_resume() is deprecated and being removed. ZX-2720 #comment Test: /boot/test/sys/policy-test and CQ Change-Id: Ib9a787c69cbf511169e884a9e052a64c440bd144 --- system/utest/policy/job-policy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/utest/policy/job-policy.cpp b/system/utest/policy/job-policy.cpp index b1dcf8518e3..a1bbb187051 100644 --- a/system/utest/policy/job-policy.cpp +++ b/system/utest/policy/job-policy.cpp @@ -317,7 +317,7 @@ static bool TestInvokingPolicyWithException( // using crashlogger gives a correct backtrace. // Resume the thread. - ASSERT_EQ(zx_task_resume(thread.get(), ZX_RESUME_EXCEPTION), ZX_OK); + ASSERT_EQ(zx_task_resume_from_exception(thread.get(), exc_port, 0), ZX_OK); // Check that the read-ready state of the channel changed compared with // the earlier check. EXPECT_EQ(zx_object_wait_one(ctrl, ZX_CHANNEL_READABLE, ZX_TIME_INFINITE, -- GitLab