public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Fix wrong pattern used by fnmatch in test case proc01.c
@ 2015-11-27  6:44 Li Jin
  2015-11-27  6:44 ` [LTP] [PATCH] " Li Jin
  0 siblings, 1 reply; 11+ messages in thread
From: Li Jin @ 2015-11-27  6:44 UTC (permalink / raw)
  To: ltp


Hi

Hi,

When I run test case proc01 with 4.1 linux kernel, found that fnmatch use a
wrong pattern to match the known issue under /proc/sys/net/ipv6/conf/ such as
/proc/sys/net/ipv6/conf/all/stable_secret, and have the following error:

[root@localhost tmp]# ./proc01 
proc01      0  TINFO  :  /proc/sys/fs/binfmt_misc/register: is write-only.
proc01      1  TFAIL  :  proc01.c:392: read failed: /proc/sys/net/ipv6/conf/all/stable_secret: errno=EIO(5): Input/output error
proc01      2  TFAIL  :  proc01.c:392: read failed: /proc/sys/net/ipv6/conf/bond0/stable_secret: errno=EIO(5): Input/output error
proc01      3  TFAIL  :  proc01.c:392: read failed: /proc/sys/net/ipv6/conf/default/stable_secret: errno=EIO(5): Input/output error
proc01      4  TFAIL  :  proc01.c:392: read failed: /proc/sys/net/ipv6/conf/eth0/stable_secret: errno=EIO(5): Input/output error

Test passed with the following change

/proc/sys/net/ipv6/conf/*/stable_secret --> /proc/sys/net/ipv6/conf/[a-z]*/stable_secret

[root@localhost ~]# ./proc01 
proc01      0  TINFO  :  /proc/sys/fs/binfmt_misc/register: is write-only.
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/all/stable_secret: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/bond0/stable_secret: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/default/stable_secret: known issue: errno=EIO(5): Input/output error
proc01      0  TINFO  :  /proc/sys/net/ipv6/conf/eth0/stable_secret: known issue: errno=EIO(5): Input/output error

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-12-02  9:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-27  6:44 [LTP] Fix wrong pattern used by fnmatch in test case proc01.c Li Jin
2015-11-27  6:44 ` [LTP] [PATCH] " Li Jin
2015-11-30 12:46   ` Jan Stancek
2015-12-01  1:30     ` Lijin
2015-12-01  8:35       ` Jan Stancek
2015-12-01  9:34         ` Lijin
2015-12-01 10:02           ` Jan Stancek
2015-12-01 17:10           ` Jeffrey Bastian
2015-12-02  6:05             ` Lijin
2015-12-02  6:25             ` Jin Li
2015-12-02  9:47               ` Jan Stancek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox