mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 11:01:19 +00:00
With this, the emulator is able to reboot itself without the help of run_host_test script. This makes it easier for development and also speeds up the test. BUG=chrome-os-partner:19235 TEST=Pass all tests BRANCH=None Change-Id: Ifa510442de19256c671ab91b6bc75fe9e8b9dc7b Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/62969 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
19 lines
415 B
C
19 lines
415 B
C
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* Emulator self-reboot procedure */
|
|
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
#include "host_test.h"
|
|
#include "reboot.h"
|
|
|
|
void emulator_reboot(void)
|
|
{
|
|
char *argv[] = {strdup(__get_prog_name()), NULL};
|
|
execv(__get_prog_name(), argv);
|
|
}
|