aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Scripts/TestFrameworkFixUnifdef.test
blob: a4fffe4ed79a31f129c0d1d02af94a26acde7c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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 SWIG

# 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