Linux Test Project
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/1] cgroup: Rewrite some C parts into new API
Date: Fri, 4 Jan 2019 14:55:08 +0100	[thread overview]
Message-ID: <20190104135508.GB11876@dell5510> (raw)
In-Reply-To: <20190104121339.32147-1-pvorel@suse.cz>

Hi,

> diff --git a/testcases/kernel/controllers/cgroup/cgroup_regression_6_2.c b/testcases/kernel/controllers/cgroup/cgroup_regression_6_2.c
...
> -int main(int argc, char **argv)
> +static void do_test(void)
>  {
>  	int usec;
> -
> -	if (argc == 2)
> -		usec = atoi(argv[1]);
> -	else
> +	if (tst_parse_int(str_usec, &usec, 1, INT_MAX))
>  		usec = DEFAULT_USEC;

>  	while (1) {
> @@ -32,5 +33,15 @@ int main(int argc, char **argv)
>  		ltp_clone_quick(CLONE_NEWNS, foo, NULL);
>  	}

> -	tst_exit();
> +	tst_res(TINFO, "exit");
tst_res(TPASS, "exit");

>  }
> +
> +static struct tst_option options[] = {
> +	{"u", &str_usec, "-u       usec (default " STR(DEFAULT_USEC) ")"},
{"u:", &str_usec, "-u       usec (default " STR(DEFAULT_USEC) ")"},
> +	{NULL, NULL, NULL}
> +};

But also have problem to kill it => this patch is not applicable.


Kind regards,
Petr

      parent reply	other threads:[~2019-01-04 13:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-04 12:13 [LTP] [PATCH 1/1] cgroup: Rewrite some C parts into new API Petr Vorel
2019-01-04 13:47 ` Petr Vorel
2019-01-04 13:55 ` Petr Vorel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190104135508.GB11876@dell5510 \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox