diff options
author | He Zhe <zhe.he@windriver.com> | 2019-04-22 16:35:18 +0800 |
---|---|---|
committer | Xiao Yang <yangx.jy@cn.fujitsu.com> | 2019-05-09 12:25:02 +0800 |
commit | 928c22bea2043deb35ee9abd075b7c3cb5cdb325 (patch) | |
tree | 3a67128919dacaef32e5c0cf1fdc07e5f2a9ab4f /testcases | |
parent | 4980daa6c7a959c1686e3af47f916f5a217964f0 (diff) |
file01.sh: Fix in was not recognized
Some file has "pie" appending after LSB or MSB, which causes mismatch and the
following error.
"file01 10 TFAIL: in: was not recognized"
..."ELF 64-bit LSB pie executable"...
This patches tunes the regulation expression to include those cases.
Signed-off-by: He Zhe <zhe.he@windriver.com>
Reviewed-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Diffstat (limited to 'testcases')
-rwxr-xr-x | testcases/commands/file/file01.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testcases/commands/file/file01.sh b/testcases/commands/file/file01.sh index 0a8119ee1..55c043348 100755 --- a/testcases/commands/file/file01.sh +++ b/testcases/commands/file/file01.sh @@ -91,7 +91,9 @@ do_test() 9) file_test in.m4 "M4 macro processor script, ASCII text" \ "ASCII M4 macro language pre-processor text";; 10) file_test in "ELF .*-bit $TEST_ARCH executable, .*" \ - "ELF .*-bit $TEST_ARCH shared object, .*";; + "ELF .*-bit $TEST_ARCH shared object, .*" \ + "ELF .*-bit $TEST_ARCH pie executable, .*" \ + "ELF .*-bit $TEST_ARCH pie shared object, .*";; 11) file_test in.ar "current ar archive";; 12) file_test in.tar "tar archive";; 13) file_test in.tar.gz "gzip compressed data, .*";; |