This is an archive of the discontinued LLVM Phabricator instance.

[AIX] Skip unsupported ORC JIT RemoteObjectLayerTest on AIX
ClosedPublic

Authored by daltenty on Apr 24 2020, 9:20 AM.

Details

Summary

Currently the XCOFF backend does not support writing 64-bit object
files, which the ORC JIT tests will try to exercise if we are on AIX. This patch
selectively disables the tests on AIX for now.

Diff Detail

Event Timeline

daltenty created this revision.Apr 24 2020, 9:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2020, 9:20 AM

Note: Would have preferred to use GTEST_SKIP to skip the tests, but we don't seem to have it on our google test version.

llvm/unittests/ExecutionEngine/Orc/RemoteObjectLayerTest.cpp
22

Do we want to use the do { } while(false) pattern for statement-like macros?

Can we make a test that uses the interface that first triggers the error we're seeing in these tests and actually expects the error? If it is not too difficult, then it would help to ensure that the functional tests being skipped here are restored when the error goes away.

lhames accepted this revision.Apr 28 2020, 9:53 AM

LGTM. RemoteObjectLayer is deprecated and will be removed soon, so anything that makes the builders happy is fine by me.

This revision is now accepted and ready to land.Apr 28 2020, 9:53 AM

Can we make a test that uses the interface that first triggers the error we're seeing in these tests and actually expects the error? If it is not too difficult, then it would help to ensure that the functional tests being skipped here are restored when the error goes away.

Given the context from @lhames, I think this LGTM as-is.

daltenty marked an inline comment as done.Apr 30 2020, 5:50 PM
daltenty updated this revision to Diff 261409.Apr 30 2020, 5:50 PM
  • Add do {} while(false) pattern to macro

Confirming that this LGTM.

This revision was automatically updated to reflect the committed changes.