blob: e625514e1f32d5fc722d40171e565a52223ed7b9 [file] [log] [blame]
package main
import (
"testing"
"go.fuchsia.dev/fuchsia/src/tests/reboot/support"
)
// Test that "killall bootsvc" will reboot the system (because bootsvc is marked as a critical
// process; see also |zx_job_set_critical|).
func TestKillCriticalProcess(t *testing.T) {
// Killing a critical process will result in an "unclean reboot" because, among other
// things, the filesystem won't be shutdown cleanly.
support.RebootWithCommand(t, "killall bootsvc", support.UncleanReboot)
}