diff options
author | Rui Ueyama <ruiu@google.com> | 2016-10-26 01:07:26 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-10-26 01:07:26 +0000 |
commit | 7d084db8369c1b076dfc4563dce27f5aaebb63b8 (patch) | |
tree | 1d0e809d67468fa12e0f7d8db158158fc6aacac8 /test/Object/archive-format.test | |
parent | 7f59a4b62de3f616add2f022094e7a57ae1fb032 (diff) |
Use printf instead of "echo -e" or "echo -n".
Not all echo commands support "-e". On the other hand, printf
command is in POSIX, so it's more portable than "echo -e".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285151 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Object/archive-format.test')
-rw-r--r-- | test/Object/archive-format.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Object/archive-format.test b/test/Object/archive-format.test index 70458d51be1..b9562a36d67 100644 --- a/test/Object/archive-format.test +++ b/test/Object/archive-format.test @@ -4,11 +4,11 @@ string table or not. RUN: mkdir -p %t RUN: cd %t -RUN: echo -n bar. > 0123456789abcde -RUN: echo -n zed. > 0123456789abcdef +RUN: printf bar. > 0123456789abcde +RUN: printf zed. > 0123456789abcdef RUN: mkdir -p foo -RUN: echo -n bar2 > foo/0123456789abcde -RUN: echo -n zed2 > foo/0123456789abcdef +RUN: printf bar2 > foo/0123456789abcde +RUN: printf zed2 > foo/0123456789abcdef RUN: rm -f %t.a RUN: llvm-ar --format=gnu rc %t.a 0123456789abcde 0123456789abcdef foo/0123456789abcde foo/0123456789abcdef |