xref: /llvm-project/llvm/utils/rsp_bisect_test/test_script_inv.py (revision b71edfaa4ec3c998aadb35255ce2f60bba2940b0)
1#!/usr/bin/env python3
2# ===----------------------------------------------------------------------===##
3#
4# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5# See https://llvm.org/LICENSE.txt for license information.
6# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7#
8# ===----------------------------------------------------------------------===##
9
10import os
11import sys
12
13rsp_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "rsp")
14
15with open(rsp_path) as f:
16    success = "../Other/./foo" in f.read()
17
18sys.exit(1 if success else 0)
19