| 1 | //===-- thread_inferior.cpp -----------------------------------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include <string> |
| 10 | #include <cstdlib> |
| 11 | |
| 12 | int main() { |
| 13 | const char *value = std::getenv(name: "LLDB_TEST_MAGIC_VARIABLE" ); |
| 14 | if (!value) |
| 15 | return 1; |
| 16 | if (std::string(value) != "LLDB_TEST_MAGIC_VALUE" ) |
| 17 | return 2; |
| 18 | return 0; |
| 19 | } |
| 20 | |