This will allow to use llvm-strip with file names that begin with dashes.
Details
Diff Detail
Event Timeline
llvm/test/tools/llvm-objcopy/dash-dash.test | ||
---|---|---|
19 | You don't need to make this CHECK unique to objcopy, since llvm-strip and llvm-objcopy produce the same string. Just use --check-prefix=CHECK-NO-INPUT. | |
21 | I'd probably reorder the test cases so that equivalent cases for llvm-strip and llvm-objcopy are side-by-side, i.e. something like: ## llvm-objcopy case 1 ## llvm-strip case 1 ## llvm-objcopy case 2 ## llvm-strip case 2 ## llvm-objcopy case 3 ## llvm-strip case 3 (where case 1/2/3 are the three distinct cases you test here). | |
23 | Use cp to copy test-obj rather than running yaml2obj again unnecessarily. | |
24–25 | I'd avoid using -o anywhere in these tests, since that's an option itself, and just muddies the waters. Instead, use 2+ input files, which will be modified in-place (you may need to make copies of these files first so you have pristine versions for use later). Same applies in the below cases too. |
llvm/test/tools/llvm-objcopy/dash-dash.test | ||
---|---|---|
12 | I think you should have two inputs here, much like llvm-objcopy has two positional arguments. Same goes below. In other words, test the same set of positional arguments as llvm-objcopy does (it's just that in llvm-strip's case, they are both inputs, not one input and one output). |
I think you should have two inputs here, much like llvm-objcopy has two positional arguments. Same goes below. In other words, test the same set of positional arguments as llvm-objcopy does (it's just that in llvm-strip's case, they are both inputs, not one input and one output).