Debian Codegraph @

llvm/test/tools/llvm-reduce/Inputs/flaky-test.py

raw
1 """Script to exit 0 on the first run, and non-0 on subsequent
2 runs. This demonstrates a flaky interestingness test.
3 """
4 import sys
5 import pathlib
6
7 # This will exit 0 the first time the script is run, and fail the second time
8 pathlib.Path(sys.argv[1]).touch(exist_ok=False)