LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 22343 - Add regression tests for r221915.
Summary: Add regression tests for r221915.
Status: NEW
Alias: None
Product: Test Suite
Classification: Unclassified
Component: lit (show other bugs)
Version: trunk
Hardware: PC All
: P normal
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-26 22:45 PST by Lang Hames
Modified: 2018-03-20 09:31 PDT (History)
5 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lang Hames 2015-01-26 22:45:51 PST
r221915 changed a number of asserts into error-checks in MachOObjectFile, but no test-cases were added.

Malformed objects covering the following cases should be tested:

(1) Duplicate SymtabLoadCmd.
(2) Duplicate DysymtabLoadCmd.
(3) Duplicate DataInCodeLoadCmd.
(4) Duplicate DyldInfoLoadCmd.
(5) Duplicate UuidLoadCmd.

At a minimum we can test that llvm-objdump no longer asserts on these cases. Once we have some proper error reporting we can check specifically for that.