aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-reduce/Inputs/flaky-test.py
blob: 0d85616a43b4c78c3c809c3d18d76b68a7dd00db (plain)
1
2
3
4
5
6
7
8
"""Script to exit 0 on the first run, and non-0 on subsequent
runs. This demonstrates a flaky interestingness test.
"""
import sys
import pathlib

# This will exit 0 the first time the script is run, and fail the second time
pathlib.Path(sys.argv[1]).touch(exist_ok=False)