[PATCH] D138985: [BigArchive][NFC] Add test case that list members of archive with free list in it
Kai Luo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 00:19:34 PST 2022
lkail created this revision.
lkail added reviewers: Esme, DiggerLin, PowerPC.
Herald added a project: All.
lkail requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The archive is generated via
touch foo.c
ar crus libfoo.a foo.c
ar d libfoo.a foo.c
Thus it contains free list.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138985
Files:
llvm/test/Object/Inputs/aix-empty-big-archive-with-freelist.a
llvm/test/Object/archive-big-read-empty-with-freelist.test
Index: llvm/test/Object/archive-big-read-empty-with-freelist.test
===================================================================
--- /dev/null
+++ llvm/test/Object/archive-big-read-empty-with-freelist.test
@@ -0,0 +1,3 @@
+# Test reading an empty archive with free list in it.
+# RUN: env TZ=GMT not llvm-ar tv %p/Inputs/aix-empty-big-archive-with-freelist.a 2>&1 \
+# RUN: | grep 'truncated or malformed archive'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138985.478831.patch
Type: text/x-patch
Size: 421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221130/fc162d2b/attachment.bin>
More information about the llvm-commits
mailing list