public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 7/7] Delete depreacted input test suite helper
Date: Thu, 28 Nov 2024 11:55:04 +0100	[thread overview]
Message-ID: <Z0hMCHO0cBpmj91V@yuki.lan> (raw)
In-Reply-To: <20241125-input_refactoring-v1-7-b622b3aa698d@suse.com>

Hi!
> -static void check_ui_get_sysname_ioctl(int fd)
> -{
> -	char sys_name[256];
> -	char dev_name[256];
> -	char *path;
> -
> -	SAFE_IOCTL(NULL, fd, UI_GET_SYSNAME(sizeof(sys_name)), sys_name, NULL);
> -	SAFE_ASPRINTF(NULL, &path, "/sys/devices/virtual/input/%s/name", sys_name);
> -
> -	if (FILE_SCANF(path, "%s", dev_name)) {
> -		tst_resm(TFAIL|TERRNO, "Failed to read '%s'", path);
> -		free(path);
> -		return;
> -	}
> -
> -	if (!strcmp(VIRTUAL_DEVICE, dev_name))
> -		tst_resm(TPASS, "ioctl UI_GET_SYSNAME returned correct name");
> -	else
> -		tst_resm(TFAIL, "ioctl UI_GET_SYSNAME returned wrong name");
> -
> -	free(path);
> -}
> -
> -void create_device(int fd)
> -{
> -	int nb;
> -	struct uinput_user_dev uidev = {
> -		.name = VIRTUAL_DEVICE,
> -		.id = {
> -			.bustype = BUS_USB,
> -			.vendor = 0x1,
> -			.product = 0x1,
> -			.version = 1,
> -		}
> -	};
> -
> -	SAFE_WRITE(NULL, SAFE_WRITE_ALL, fd, &uidev, sizeof(uidev));
> -	SAFE_IOCTL(NULL, fd, UI_DEV_CREATE, NULL);
> -
> -	for (nb = 100; nb > 0; nb--) {
> -		if (check_device()) {
> -			check_ui_get_sysname_ioctl(fd);

This check is being removed without replacement. This was added in:

commit ccc8bc7b8104d932daf5d1131b0522250eaa14ce
Author: Wei Gao via ltp <ltp@lists.linux.it>
Date:   Tue Oct 17 09:16:46 2023 -0400

    testcases/input: Add test for UI_GET_NAME ioctl


-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2024-11-28 10:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-25 12:18 [LTP] [PATCH 0/7] Rewrite input testing suite Andrea Cervesato
2024-11-25 12:18 ` [LTP] [PATCH 1/7] Refactor input01 test Andrea Cervesato
2024-11-28  7:33   ` Li Wang
2024-11-25 12:18 ` [LTP] [PATCH 2/7] Refactor input02 test Andrea Cervesato
2024-11-28  7:49   ` Li Wang
2024-11-25 12:18 ` [LTP] [PATCH 3/7] Refactor input03 test Andrea Cervesato
2024-11-28  9:43   ` Li Wang
2024-11-25 12:19 ` [LTP] [PATCH 4/7] Refactor input04 test Andrea Cervesato
2024-11-29  2:04   ` Li Wang
2024-11-25 12:19 ` [LTP] [PATCH 5/7] Refactor input05 test Andrea Cervesato
2024-11-29  2:10   ` Li Wang
2024-11-25 12:19 ` [LTP] [PATCH 6/7] Refactor input06 test Andrea Cervesato
2024-11-25 12:19 ` [LTP] [PATCH 7/7] Delete depreacted input test suite helper Andrea Cervesato
2024-11-28 10:55   ` Cyril Hrubis [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=Z0hMCHO0cBpmj91V@yuki.lan \
    --to=chrubis@suse.cz \
    --cc=andrea.cervesato@suse.de \
    --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