Skip to content

Commit 2540fb6

Browse files
authored
[clang] Fix of test 'ctu-import-type-decl-definition.c' (NFC) (llvm#157038)
It looks not possible to have a `sed` command with -i option that works on all platforms. The -i option is not necessary so it is removed.
1 parent dc10373 commit 2540fb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Analysis/ctu-import-type-decl-definition.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
// RUN: %clang_cc1 -emit-pch -o %t/import.c.ast %t/import.c
66

7-
// RUN: %clang_extdef_map -- -x c %t/import.c >> %t/externalDefMap.txt
8-
// RUN: sed -i='' 's/$/.ast/' %t/externalDefMap.txt
7+
// RUN: %clang_extdef_map -- -x c %t/import.c >> %t/externalDefMap.tmp.txt
8+
// RUN: sed 's/$/.ast/' %t/externalDefMap.tmp.txt >> %t/externalDefMap.txt
99

1010
// RUN: %clang_cc1 -analyze \
1111
// RUN: -analyzer-checker=core \

0 commit comments

Comments
 (0)