Mike Frysinger | 8155d08 | 2012-04-06 15:23:18 -0400 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 5 | #include "update_engine/postinstall_runner_action.h" |
| 6 | |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 7 | #include <sys/stat.h> |
| 8 | #include <sys/types.h> |
| 9 | #include <unistd.h> |
Andrew de los Reyes | bfabc30 | 2011-01-31 17:23:50 -0800 | [diff] [blame] | 10 | |
Ben Chan | 02f7c1d | 2014-10-18 15:18:02 -0700 | [diff] [blame] | 11 | #include <memory> |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 12 | #include <string> |
| 13 | #include <vector> |
Andrew de los Reyes | bfabc30 | 2011-01-31 17:23:50 -0800 | [diff] [blame] | 14 | |
Ben Chan | 06c76a4 | 2014-09-05 08:21:06 -0700 | [diff] [blame] | 15 | #include <base/files/file_util.h> |
Alex Vakulenko | 75039d7 | 2014-03-25 12:36:28 -0700 | [diff] [blame] | 16 | #include <base/strings/string_util.h> |
| 17 | #include <base/strings/stringprintf.h> |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 18 | #include <gtest/gtest.h> |
Andrew de los Reyes | bfabc30 | 2011-01-31 17:23:50 -0800 | [diff] [blame] | 19 | |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 20 | #include "update_engine/constants.h" |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 21 | #include "update_engine/test_utils.h" |
| 22 | #include "update_engine/utils.h" |
| 23 | |
Alex Deymo | 10875d9 | 2014-11-10 21:52:57 -0800 | [diff] [blame^] | 24 | using chromeos_update_engine::test_utils::System; |
| 25 | using chromeos_update_engine::test_utils::WriteFileString; |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 26 | using std::string; |
Ben Chan | 02f7c1d | 2014-10-18 15:18:02 -0700 | [diff] [blame] | 27 | using std::unique_ptr; |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 28 | using std::vector; |
| 29 | |
| 30 | namespace chromeos_update_engine { |
| 31 | |
Darin Petkov | 6f03a3b | 2010-11-10 14:27:14 -0800 | [diff] [blame] | 32 | namespace { |
| 33 | gboolean StartProcessorInRunLoop(gpointer data) { |
| 34 | ActionProcessor *processor = reinterpret_cast<ActionProcessor*>(data); |
| 35 | processor->StartProcessing(); |
| 36 | return FALSE; |
| 37 | } |
| 38 | } // namespace |
| 39 | |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 40 | class PostinstallRunnerActionTest : public ::testing::Test { |
| 41 | public: |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 42 | // DoTest with various combinations of do_losetup, err_code and |
| 43 | // powerwash_required. |
| 44 | void DoTest(bool do_losetup, int err_code, bool powerwash_required); |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 45 | |
| 46 | private: |
| 47 | static const char* kImageMountPointTemplate; |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 48 | }; |
| 49 | |
| 50 | class PostinstActionProcessorDelegate : public ActionProcessorDelegate { |
| 51 | public: |
Darin Petkov | c1a8b42 | 2010-07-19 11:34:49 -0700 | [diff] [blame] | 52 | PostinstActionProcessorDelegate() |
Alex Vakulenko | 88b591f | 2014-08-28 16:48:57 -0700 | [diff] [blame] | 53 | : loop_(nullptr), |
Gilad Arnold | d1c4d2d | 2014-06-05 14:07:53 -0700 | [diff] [blame] | 54 | code_(ErrorCode::kError), |
Darin Petkov | c1a8b42 | 2010-07-19 11:34:49 -0700 | [diff] [blame] | 55 | code_set_(false) {} |
Darin Petkov | 6f03a3b | 2010-11-10 14:27:14 -0800 | [diff] [blame] | 56 | void ProcessingDone(const ActionProcessor* processor, |
David Zeuthen | a99981f | 2013-04-29 13:42:47 -0700 | [diff] [blame] | 57 | ErrorCode code) { |
Darin Petkov | 6f03a3b | 2010-11-10 14:27:14 -0800 | [diff] [blame] | 58 | ASSERT_TRUE(loop_); |
| 59 | g_main_loop_quit(loop_); |
| 60 | } |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 61 | void ActionCompleted(ActionProcessor* processor, |
| 62 | AbstractAction* action, |
David Zeuthen | a99981f | 2013-04-29 13:42:47 -0700 | [diff] [blame] | 63 | ErrorCode code) { |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 64 | if (action->Type() == PostinstallRunnerAction::StaticType()) { |
Darin Petkov | c1a8b42 | 2010-07-19 11:34:49 -0700 | [diff] [blame] | 65 | code_ = code; |
| 66 | code_set_ = true; |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 67 | } |
| 68 | } |
Darin Petkov | 6f03a3b | 2010-11-10 14:27:14 -0800 | [diff] [blame] | 69 | GMainLoop* loop_; |
David Zeuthen | a99981f | 2013-04-29 13:42:47 -0700 | [diff] [blame] | 70 | ErrorCode code_; |
Darin Petkov | c1a8b42 | 2010-07-19 11:34:49 -0700 | [diff] [blame] | 71 | bool code_set_; |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 72 | }; |
| 73 | |
| 74 | TEST_F(PostinstallRunnerActionTest, RunAsRootSimpleTest) { |
| 75 | ASSERT_EQ(0, getuid()); |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 76 | DoTest(true, 0, false); |
| 77 | } |
| 78 | |
| 79 | TEST_F(PostinstallRunnerActionTest, RunAsRootPowerwashRequiredTest) { |
| 80 | ASSERT_EQ(0, getuid()); |
| 81 | DoTest(true, 0, true); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 82 | } |
| 83 | |
| 84 | TEST_F(PostinstallRunnerActionTest, RunAsRootCantMountTest) { |
| 85 | ASSERT_EQ(0, getuid()); |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 86 | DoTest(false, 0, true); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | TEST_F(PostinstallRunnerActionTest, RunAsRootErrScriptTest) { |
| 90 | ASSERT_EQ(0, getuid()); |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 91 | DoTest(true, 1, false); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 92 | } |
| 93 | |
Andrew de los Reyes | c1d5c93 | 2011-04-20 17:15:47 -0700 | [diff] [blame] | 94 | TEST_F(PostinstallRunnerActionTest, RunAsRootFirmwareBErrScriptTest) { |
| 95 | ASSERT_EQ(0, getuid()); |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 96 | DoTest(true, 3, false); |
Andrew de los Reyes | c1d5c93 | 2011-04-20 17:15:47 -0700 | [diff] [blame] | 97 | } |
| 98 | |
Don Garrett | 81018e0 | 2013-07-30 18:46:31 -0700 | [diff] [blame] | 99 | TEST_F(PostinstallRunnerActionTest, RunAsRootFirmwareROErrScriptTest) { |
| 100 | ASSERT_EQ(0, getuid()); |
| 101 | DoTest(true, 4, false); |
| 102 | } |
| 103 | |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 104 | const char* PostinstallRunnerActionTest::kImageMountPointTemplate = |
| 105 | "au_destination-XXXXXX"; |
| 106 | |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 107 | void PostinstallRunnerActionTest::DoTest( |
| 108 | bool do_losetup, |
| 109 | int err_code, |
| 110 | bool powerwash_required) { |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 111 | ASSERT_EQ(0, getuid()) << "Run me as root. Ideally don't run other tests " |
| 112 | << "as root, tho."; |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 113 | // True if the post-install action is expected to succeed. |
| 114 | bool should_succeed = do_losetup && !err_code; |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 115 | |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 116 | string orig_cwd; |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 117 | { |
| 118 | vector<char> buf(1000); |
| 119 | ASSERT_EQ(&buf[0], getcwd(&buf[0], buf.size())); |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 120 | orig_cwd = string(&buf[0], strlen(&buf[0])); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 121 | } |
| 122 | |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 123 | // Create a unique named working directory and chdir into it. |
| 124 | string cwd; |
| 125 | ASSERT_TRUE(utils::MakeTempDirectory( |
Gilad Arnold | a6742b3 | 2014-01-11 00:18:34 -0800 | [diff] [blame] | 126 | "postinstall_runner_action_unittest-XXXXXX", |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 127 | &cwd)); |
Alex Deymo | 10875d9 | 2014-11-10 21:52:57 -0800 | [diff] [blame^] | 128 | ASSERT_EQ(0, test_utils::Chdir(cwd)); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 129 | |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 130 | // Create a 10MiB sparse file to be used as image; format it as ext2. |
Alex Deymo | 10875d9 | 2014-11-10 21:52:57 -0800 | [diff] [blame^] | 131 | ASSERT_EQ(0, System( |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 132 | "dd if=/dev/zero of=image.dat seek=10485759 bs=1 count=1")); |
Alex Deymo | 10875d9 | 2014-11-10 21:52:57 -0800 | [diff] [blame^] | 133 | ASSERT_EQ(0, System("mkfs.ext2 -F image.dat")); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 134 | |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 135 | // Create a uniquely named image mount point, mount the image. |
| 136 | ASSERT_EQ(0, System(string("mkdir -p ") + kStatefulPartition)); |
| 137 | string mountpoint; |
| 138 | ASSERT_TRUE(utils::MakeTempDirectory( |
| 139 | string(kStatefulPartition) + "/" + kImageMountPointTemplate, |
| 140 | &mountpoint)); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 141 | ASSERT_EQ(0, System(string("mount -o loop image.dat ") + mountpoint)); |
| 142 | |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 143 | // Generate a fake postinst script inside the image. |
| 144 | string script = (err_code ? |
Alex Vakulenko | 75039d7 | 2014-03-25 12:36:28 -0700 | [diff] [blame] | 145 | base::StringPrintf("#!/bin/bash\nexit %d", err_code) : |
| 146 | base::StringPrintf( |
| 147 | "#!/bin/bash\n" |
| 148 | "mount | grep au_postint_mount | grep ext2\n" |
| 149 | "if [ $? -eq 0 ]; then\n" |
| 150 | " touch %s/postinst_called\n" |
| 151 | "fi\n", |
| 152 | cwd.c_str())); |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 153 | const string script_file_name = mountpoint + "/postinst"; |
| 154 | ASSERT_TRUE(WriteFileString(script_file_name, script)); |
| 155 | ASSERT_EQ(0, System(string("chmod a+x ") + script_file_name)); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 156 | |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 157 | // Unmount image; do not remove the uniquely named directory as it will be |
| 158 | // reused during the test. |
Ben Chan | 77a1eba | 2012-10-07 22:54:55 -0700 | [diff] [blame] | 159 | ASSERT_TRUE(utils::UnmountFilesystem(mountpoint)); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 160 | |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 161 | // get a loop device we can use for the install device |
Don Garrett | 58e8b1f | 2012-01-31 16:38:16 -0800 | [diff] [blame] | 162 | string dev = "/dev/null"; |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 163 | |
Alex Deymo | 10875d9 | 2014-11-10 21:52:57 -0800 | [diff] [blame^] | 164 | unique_ptr<test_utils::ScopedLoopbackDeviceBinder> loop_releaser; |
Darin Petkov | 56dad72 | 2011-03-03 16:03:56 -0800 | [diff] [blame] | 165 | if (do_losetup) { |
Alex Deymo | 10875d9 | 2014-11-10 21:52:57 -0800 | [diff] [blame^] | 166 | loop_releaser.reset(new test_utils::ScopedLoopbackDeviceBinder( |
| 167 | cwd + "/image.dat", &dev)); |
Darin Petkov | 56dad72 | 2011-03-03 16:03:56 -0800 | [diff] [blame] | 168 | } |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 169 | |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 170 | // We use a test-specific powerwash marker file, to avoid race conditions. |
| 171 | string powerwash_marker_file = mountpoint + "/factory_install_reset"; |
| 172 | LOG(INFO) << ">>> powerwash_marker_file=" << powerwash_marker_file; |
| 173 | |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 174 | ActionProcessor processor; |
Andrew de los Reyes | f971443 | 2010-05-04 10:21:23 -0700 | [diff] [blame] | 175 | ObjectFeederAction<InstallPlan> feeder_action; |
| 176 | InstallPlan install_plan; |
| 177 | install_plan.install_path = dev; |
Chris Sosa | 000ecb3 | 2014-04-23 12:21:18 -0700 | [diff] [blame] | 178 | install_plan.download_url = "http://devserver:8080/update"; |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 179 | install_plan.powerwash_required = powerwash_required; |
Andrew de los Reyes | f971443 | 2010-05-04 10:21:23 -0700 | [diff] [blame] | 180 | feeder_action.set_obj(install_plan); |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 181 | PostinstallRunnerAction runner_action(powerwash_marker_file.c_str()); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 182 | BondActions(&feeder_action, &runner_action); |
Andrew de los Reyes | f971443 | 2010-05-04 10:21:23 -0700 | [diff] [blame] | 183 | ObjectCollectorAction<InstallPlan> collector_action; |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 184 | BondActions(&runner_action, &collector_action); |
| 185 | PostinstActionProcessorDelegate delegate; |
| 186 | processor.EnqueueAction(&feeder_action); |
| 187 | processor.EnqueueAction(&runner_action); |
| 188 | processor.EnqueueAction(&collector_action); |
| 189 | processor.set_delegate(&delegate); |
Darin Petkov | 6f03a3b | 2010-11-10 14:27:14 -0800 | [diff] [blame] | 190 | |
| 191 | GMainLoop* loop = g_main_loop_new(g_main_context_default(), FALSE); |
| 192 | delegate.loop_ = loop; |
| 193 | g_timeout_add(0, &StartProcessorInRunLoop, &processor); |
| 194 | g_main_loop_run(loop); |
| 195 | g_main_loop_unref(loop); |
| 196 | ASSERT_FALSE(processor.IsRunning()); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 197 | |
Darin Petkov | c1a8b42 | 2010-07-19 11:34:49 -0700 | [diff] [blame] | 198 | EXPECT_TRUE(delegate.code_set_); |
Gilad Arnold | d1c4d2d | 2014-06-05 14:07:53 -0700 | [diff] [blame] | 199 | EXPECT_EQ(should_succeed, delegate.code_ == ErrorCode::kSuccess); |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 200 | EXPECT_EQ(should_succeed, !collector_action.object().install_path.empty()); |
| 201 | if (should_succeed) |
Andrew de los Reyes | f971443 | 2010-05-04 10:21:23 -0700 | [diff] [blame] | 202 | EXPECT_TRUE(install_plan == collector_action.object()); |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 203 | |
Alex Vakulenko | 75039d7 | 2014-03-25 12:36:28 -0700 | [diff] [blame] | 204 | const base::FilePath kPowerwashMarkerPath(powerwash_marker_file); |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 205 | string actual_cmd; |
| 206 | if (should_succeed && powerwash_required) { |
Alex Vakulenko | 75039d7 | 2014-03-25 12:36:28 -0700 | [diff] [blame] | 207 | EXPECT_TRUE(base::ReadFileToString(kPowerwashMarkerPath, &actual_cmd)); |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 208 | EXPECT_EQ(kPowerwashCommand, actual_cmd); |
| 209 | } else { |
| 210 | EXPECT_FALSE( |
Alex Vakulenko | 75039d7 | 2014-03-25 12:36:28 -0700 | [diff] [blame] | 211 | base::ReadFileToString(kPowerwashMarkerPath, &actual_cmd)); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 212 | } |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 213 | |
Andrew de los Reyes | c1d5c93 | 2011-04-20 17:15:47 -0700 | [diff] [blame] | 214 | if (err_code == 2) |
Gilad Arnold | d1c4d2d | 2014-06-05 14:07:53 -0700 | [diff] [blame] | 215 | EXPECT_EQ(ErrorCode::kPostinstallBootedFromFirmwareB, delegate.code_); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 216 | |
| 217 | struct stat stbuf; |
| 218 | int rc = lstat((string(cwd) + "/postinst_called").c_str(), &stbuf); |
Jay Srinivasan | 1c0fe79 | 2013-03-28 16:45:25 -0700 | [diff] [blame] | 219 | if (should_succeed) |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 220 | ASSERT_EQ(0, rc); |
| 221 | else |
| 222 | ASSERT_LT(rc, 0); |
| 223 | |
Darin Petkov | 56dad72 | 2011-03-03 16:03:56 -0800 | [diff] [blame] | 224 | if (do_losetup) { |
Alex Vakulenko | 88b591f | 2014-08-28 16:48:57 -0700 | [diff] [blame] | 225 | loop_releaser.reset(nullptr); |
Darin Petkov | 56dad72 | 2011-03-03 16:03:56 -0800 | [diff] [blame] | 226 | } |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 227 | |
| 228 | // Remove unique stateful directory. |
| 229 | ASSERT_EQ(0, System(string("rm -fr ") + mountpoint)); |
| 230 | |
| 231 | // Remove the temporary work directory. |
Alex Deymo | 10875d9 | 2014-11-10 21:52:57 -0800 | [diff] [blame^] | 232 | ASSERT_EQ(0, test_utils::Chdir(orig_cwd)); |
Gilad Arnold | 30dedd8 | 2013-07-03 06:19:09 -0700 | [diff] [blame] | 233 | ASSERT_EQ(0, System(string("rm -fr ") + cwd)); |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 234 | } |
| 235 | |
| 236 | // Death tests don't seem to be working on Hardy |
| 237 | TEST_F(PostinstallRunnerActionTest, DISABLED_RunAsRootDeathTest) { |
| 238 | ASSERT_EQ(0, getuid()); |
Darin Petkov | 6d5dbf6 | 2010-11-08 16:09:55 -0800 | [diff] [blame] | 239 | PostinstallRunnerAction runner_action; |
adlr@google.com | 3defe6a | 2009-12-04 20:57:17 +0000 | [diff] [blame] | 240 | ASSERT_DEATH({ runner_action.TerminateProcessing(); }, |
| 241 | "postinstall_runner_action.h:.*] Check failed"); |
| 242 | } |
| 243 | |
| 244 | } // namespace chromeos_update_engine |