14aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis/*
24aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis * Copyright (c) 2016 Linux Test Project
34aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis *
44aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis * This program is free software; you can redistribute it and/or
54aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis * modify it under the terms of the GNU General Public License as
64aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis * published by the Free Software Foundation; either version 2 of
74aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis * the License, or (at your option) any later version.
84aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis *
94aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis * This program is distributed in the hope that it would be useful,
104aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis * but WITHOUT ANY WARRANTY; without even the implied warranty of
114aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
124aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis * GNU General Public License for more details.
134aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis *
144aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis */
154aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis
164aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis/*
174aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis * Test for watchdog timeout.
184aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis */
194aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis
204aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis#include "tst_test.h"
214aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis
224aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis
234aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubisstatic void do_test(void)
244aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis{
254aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis	sleep(2);
264aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis	tst_res(TPASS, "Not reached");
274aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis}
284aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis
294aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubisstatic struct tst_test test = {
304aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis	.tid = "test10",
314aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis	.test_all = do_test,
324aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis	.timeout = 1,
334aebb6cc110fd871926aa3e692891a5236ca7c1fCyril Hrubis};
34