1*b225be27SEdwin Vane // RUN: mkdir -p %T/Inputs/conflict 2*b225be27SEdwin Vane // RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/file1.yaml > %T/Inputs/conflict/file1.yaml 3*b225be27SEdwin Vane // RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/file2.yaml > %T/Inputs/conflict/file2.yaml 4*b225be27SEdwin Vane // RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/file3.yaml > %T/Inputs/conflict/file3.yaml 5*b225be27SEdwin Vane // RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/expected.txt > %T/Inputs/conflict/expected.txt 6*b225be27SEdwin Vane // RUN: not clang-apply-replacements %T/Inputs/conflict > %T/Inputs/conflict/output.txt 2>&1 7*b225be27SEdwin Vane // RUN: diff -b %T/Inputs/conflict/output.txt %T/Inputs/conflict/expected.txt 8*b225be27SEdwin Vane // 9*b225be27SEdwin Vane // Check that the yaml files are *not* deleted after running clang-apply-replacements without remove-change-desc-files even when there is a failure. 10*b225be27SEdwin Vane // RUN: ls -1 %T/Inputs/conflict | FileCheck %s --check-prefix=YAML 11*b225be27SEdwin Vane // 12*b225be27SEdwin Vane // Check that the yaml files *are* deleted after running clang-apply-replacements with remove-change-desc-files even when there is a failure. 13*b225be27SEdwin Vane // RUN: not clang-apply-replacements %T/Inputs/conflict -remove-change-desc-files > %T/Inputs/conflict/output.txt 2>&1 14*b225be27SEdwin Vane // RUN: ls -1 %T/Inputs/conflict | FileCheck %s --check-prefix=NO_YAML 15*b225be27SEdwin Vane // 16*b225be27SEdwin Vane // YAML: {{^file.\.yaml$}} 17*b225be27SEdwin Vane // NO_YAML-NOT: {{^file.\.yaml$}} 18