llvm-project/lldb/test/Shell/Scripts/TestFrameworkFixUnifdef.test
Chelsea Cassanova 7c57b559a4
[lldb][scripts] Fix framework script unifdef test (#149607)
Fixes a test that's failing on LLDB GreenDragon due to a mistake in the
arguments used when calling the framework-header-fix script.
2025-07-18 17:43:46 -05:00

13 lines
539 B
Plaintext

# REQUIRES: system-darwin
# Create a temp dir for output and run the framework fix script on the truncated version of SBAddress.h in the inputs dir.
RUN: mkdir -p %t/Outputs
RUN: %python %p/../../../scripts/framework-header-fix.py -f lldb_main -i %p/Inputs/Main/SBAddress.h -o %t/Outputs/SBAddress.h -p /usr/bin/unifdef --unifdef_guards USWIG
# Check the output
RUN: cat %t/Outputs/SBAddress.h | FileCheck %s
# Any include guards specified at the command line must be removed.
CHECK-NOT: #ifndef SWIG
CHECK: int a = 10
CHECK-NOT: #endif