You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
557 B

// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2018, Linux Test Project
*
* Runs for 4 seconds for each test iteration.
*/
#include <stdlib.h>
#include <unistd.h>
#include "tst_test.h"
static void run(void)
{
int runtime;
tst_res(TINFO, "Running variant %i", tst_variant);
do {
runtime = tst_remaining_runtime();
tst_res(TINFO, "Remaining runtime %d", runtime);
sleep(1);
} while (runtime);
tst_res(TPASS, "Finished loop!");
}
static struct tst_test test = {
.test_all = run,
.max_runtime = 4,
.test_variants = 2,
};