This is an archive of the discontinued LLVM Phabricator instance.

[fuzzer] Limit big-file-copy.test to darwin only
ClosedPublic

Authored by rsundahl on Mar 28 2023, 4:12 PM.

Details

Summary

This test has to be limited to darwin due to multiple failures on other
platforms for multple reasons. (Timeout, puts() limit, etc.). This
commit modifies D146189.

Diff Detail

Event Timeline

rsundahl created this revision.Mar 28 2023, 4:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2023, 4:12 PM
Herald added a subscriber: Enna1. · View Herald Transcript
rsundahl requested review of this revision.Mar 28 2023, 4:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2023, 4:12 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
NoQ edited reviewers, added: NoQ; removed: dergachev.a.Mar 28 2023, 5:11 PM
NoQ added inline comments.
compiler-rt/test/fuzzer/big-file-copy.test
2

A quick grep suggests that this should say REQUIRES: system-darwin.

NoQ accepted this revision.Mar 28 2023, 5:22 PM
NoQ added inline comments.
compiler-rt/test/fuzzer/big-file-copy.test
2

Hmm, looks like clang uses system-darwin but compiler-rt uses darwin. Probably both are fine, given that it's the same LIT under the hood. Or maybe they define it differently in lit config 🤔 In any case LGTM then!

This revision is now accepted and ready to land.Mar 28 2023, 5:22 PM
This revision was automatically updated to reflect the committed changes.
NoQ added inline comments.Mar 28 2023, 5:27 PM
compiler-rt/test/fuzzer/big-file-copy.test
2

compiler-rt/test/fuzzer/lit.cfg.py:

47 if sys.platform.startswith('win') or sys.platform.startswith('cygwin'):
48   config.available_features.add('windows')
49
50 if sys.platform.startswith('darwin'):
51   config.available_features.add('darwin')

Looks like this is a libfuzzer-specific item in available_features (which may or may not have a slightly different meaning).