This is an archive of the discontinued LLVM Phabricator instance.

[AIX] XFAIL tests because of no big archive writer operation support
ClosedPublic

Authored by Jake-Egan on Apr 1 2022, 6:37 PM.

Details

Summary

Big archive writer operation is not currently supported so mark these tests XFAIL for now.

Diff Detail

Event Timeline

Jake-Egan created this revision.Apr 1 2022, 6:37 PM
Jake-Egan requested review of this revision.Apr 1 2022, 6:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2022, 6:37 PM
Jake-Egan edited the summary of this revision. (Show Details)Apr 1 2022, 6:39 PM
Jake-Egan added reviewers: DiggerLin, jsji.
jsji accepted this revision.Apr 1 2022, 6:40 PM

LGTM. Thanks Jake.

This revision is now accepted and ready to land.Apr 1 2022, 6:40 PM
This revision was landed with ongoing or failed builds.Apr 1 2022, 7:40 PM
This revision was automatically updated to reflect the committed changes.

The problem is whether there are other tests using "big archive" and needing XFAIL: system-aix (FWIW I think UNSUPPORTED is more appropriate).
llvm/test/Object and llvm/test/tools/llvm-ar have a dozen archive writer tests. If they all need UNSUPPORTED: system-aix, that's too much of a churn.

The patch D122746 XFAILed the archive writer tests in llvm/test/Object and llvm/test/tools/llvm-ar, but it missed the 5 tests in this patch. There aren't any other tests that need to be dealt with at the moment. I agree UNSUPPORTED probably makes more sense, but I was trying to be consistent with the other patch.

The patch D122746 XFAILed the archive writer tests in llvm/test/Object and llvm/test/tools/llvm-ar, but it missed the 5 tests in this patch. There aren't any other tests that need to be dealt with at the moment. I agree UNSUPPORTED probably makes more sense, but I was trying to be consistent with the other patch.

I considered this when reviewing, but I actually think XFAIL is better, because there are reasonably near term plans to implement the functionality. Marking as UNSUPPORTED would mean the tests won't start XPASSing at that point, meaning they may never be run for the new format, even though they should be.

That being said, for tests not testing the archiver, but rather testing a different tool, you should instead use the explicit --format option, so that they continue working on AIX. Note that this is what the original patch did.

Jake-Egan added a comment.EditedApr 4 2022, 10:48 AM

The patch D122746 XFAILed the archive writer tests in llvm/test/Object and llvm/test/tools/llvm-ar, but it missed the 5 tests in this patch. There aren't any other tests that need to be dealt with at the moment. I agree UNSUPPORTED probably makes more sense, but I was trying to be consistent with the other patch.

I considered this when reviewing, but I actually think XFAIL is better, because there are reasonably near term plans to implement the functionality. Marking as UNSUPPORTED would mean the tests won't start XPASSing at that point, meaning they may never be run for the new format, even though they should be.

That being said, for tests not testing the archiver, but rather testing a different tool, you should instead use the explicit --format option, so that they continue working on AIX. Note that this is what the original patch did.

In that case, I can post a patch to use --format instead for the tests not testing the archiver.

llvm/test/tools/llvm-link/archive.ll
llvm/test/tools/llvm-lipo/create-archive-input.test
llvm/test/tools/llvm-objcopy/MachO/universal-object.test