This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Reduce chances of spurious failures in some build setups
ClosedPublic

Authored by alexfh on Apr 12 2023, 3:00 AM.

Details

Summary

The test may fail when running from a directory that contains the string used in
CHECK-NOT. We observe flakiness rate of around 3/100000. Increasing the length
helps reducing the rate of failures.

Diff Detail

Event Timeline

alexfh created this revision.Apr 12 2023, 3:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 3:00 AM
alexfh requested review of this revision.Apr 12 2023, 3:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 3:00 AM

Could you look for the full output line instead?

(lldb) expression 1+1
(int) $0 = 2

Even if $0 changes maybe = can be checked.

alexfh updated this revision to Diff 512748.Apr 12 2023, 3:31 AM

Use full expressions in the CHECK-NOT.

DavidSpickett accepted this revision.Apr 12 2023, 3:44 AM
DavidSpickett added a reviewer: DavidSpickett.

Looks good to me.

This revision is now accepted and ready to land.Apr 12 2023, 3:44 AM
This revision was landed with ongoing or failed builds.Apr 12 2023, 4:05 AM
This revision was automatically updated to reflect the committed changes.

Looks good to me.

Thanks for the prompt and helpful review!