tests: (lsfd::column-xmode) ignore "rwx" mappings
PATCH 1/1 tests: (lsfd::column-xmode) ignore "rwx" mappings
This change fixes the issue about lsfd reported in
https://marc.info/?l=util-linux-ng&m=169972678725084&w=2
column-xmode test case assumes an executable file has only one "x" mapping like:
% pmap $$ | grep ${SHELL##*/}
1292343: zsh
0000562386c1c000 92K r---- zsh
0000562386c33000 716K r-x-- zsh <<
0000562386ce6000 88K r---- zsh
0000562386cfc000 8K r---- zsh
0000562386cfe000 24K rw--- zshHowever, this assumption is wrong on Sparc64:
% pmap $$
1490470: zsh
0000010000000000 792K r-x-- zsh <<
00000100001fe000 8K r---- zsh
0000010000200000 32K rwx-- zsh <<Two "x" mappings are found.
As a result, the original test case failed.
--- tests/ts/lsfd/column-xmode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/ts/lsfd/column-xmode +1 -1
@@ -82,7 +82,7 @@ ts_init_subtest "XMODE-w-bit" wait "${MKFDS_PID}" ts_finalize_subtest -EXPR='(ASSOC == "mem") and (INODE == '"$INO"') and (MODE != "r--") and (MODE != "rw-")' +EXPR='(ASSOC == "mem") and (INODE == '"$INO"') and (MODE != "r--") and (MODE != "rw-") and (MODE != "rwx")' ts_init_subtest "MODE-x-bit" if [ "$QEMU_USER" == "1" ]; then ts_skip_subtest "running under qemu-user emulation"
Signature · 1 line
2.41.0
Hello Masatake!
Quoted 35 lines · Masatake YAMATO
This change fixes the issue about lsfd reported in
https://marc.info/?l=util-linux-ng&m=169972678725084&w=2column-xmode test case assumes an executable file has only one "x" mapping like:
% pmap $$ | grep ${SHELL##*/} 1292343: zsh 0000562386c1c000 92K r---- zsh 0000562386c33000 716K r-x-- zsh << 0000562386ce6000 88K r---- zsh 0000562386cfc000 8K r---- zsh 0000562386cfe000 24K rw--- zshHowever, this assumption is wrong on Sparc64:
% pmap $$ 1490470: zsh 0000010000000000 792K r-x-- zsh << 00000100001fe000 8K r---- zsh 0000010000200000 32K rwx-- zsh <<Two "x" mappings are found.
As a result, the original test case failed.Signed-off-by Masatake YAMATO <[email protected]>--- tests/ts/lsfd/column-xmode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/ts/lsfd/column-xmode +0
-0
tests/ts/lsfd/column-xmode ts_init_subtest "XMODE-w-bit" · line 88
Quoted 8 lines
tests/ts/lsfd/column-xmode +1
-1@@ -82,7 +82,7 @@ ts_init_subtest "XMODE-w-bit" wait "${MKFDS_PID}" ts_finalize_subtest -EXPR='(ASSOC == "mem") and (INODE == '"$INO"') and (MODE != "r--") and (MODE != "rw-")' +EXPR='(ASSOC == "mem") and (INODE == '"$INO"') and (MODE != "r--") and (MODE != "rw-") and (MODE != "rwx")' ts_init_subtest "MODE-x-bit" if [ "$QEMU_USER" == "1" ]; then ts_skip_subtest "running under qemu-user emulation"
I can confirm that this patch fixes the test lsfd/column-xmode on sparc64 for me.
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Quoted 4 lines · John Paul Adrian Glaubitz
Quoted 2 lines
tests/ts/lsfd/column-xmode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied. Thanks Adrian and Masatake.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Hi Karel!
Quoted 8 lines · Karel Zak
Quoted 4 lines · John Paul Adrian Glaubitz
Quoted 2 lines
tests/ts/lsfd/column-xmode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Applied. Thanks Adrian and Masatake.
Thanks for the quick fix and merge to you both!
Karel, what about Thomas' fix on Github?
Quoted 1 line
Can it be merged from there or shall the patch be posted here?
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Karel Zak
maintainerQuoted 5 lines · John Paul Adrian Glaubitz
Karel, what about Thomas' fix on Github?
Quoted 1 line
Can it be merged from there or shall the patch be posted here?
Merged.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Hi Karel!
Quoted 8 lines · Karel Zak
Quoted 5 lines · John Paul Adrian Glaubitz
Karel, what about Thomas' fix on Github?
Quoted 1 line
Can it be merged from there or shall the patch be posted here?
Merged.
Perfect, thank you! All tests are passing on sparc64 again. \o/
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913