# RUN: yaml2obj %s > %t.wasm
# RUN: echo -en "\x01" >> %t.wasm
# Append a new section but truncate the encoding of the section size
# RUN: not llvm-objdump -h %t.wasm 2>&1 | FileCheck %s -check-prefix=CHECK-LEB-DECODE

!WASM
FileHeader:
  Version:         0x00000001

# CHECK-LEB-DECODE: malformed uleb128, extends past end

# RUN: echo -en "\x99hello" >> %t.wasm
# Append a section size that extends beyond the end of the file
# RUN: not llvm-objdump -h %t.wasm 2>&1 | FileCheck %s -check-prefix=CHECK-SECTION-SIZE

# CHECK-SECTION-SIZE: '{{.*}}.wasm': Section too large

# RUN: yaml2obj %s > %t.wasm
# RUN: echo -e -n "\x01" >> %t.wasm
# Append a new section but truncate the encoding of the section size
# RUN: not llvm-objdump -h %t.wasm 2>&1 | FileCheck %s -check-prefix=CHECK-LEB-DECODE

!WASM
FileHeader:
  Version:         0x00000001

# CHECK-LEB-DECODE: malformed uleb128, extends past end

# RUN: echo -en "\x99hello" >> %t.wasm
# Append a section size that extends beyond the end of the file
# RUN: not llvm-objdump -h %t.wasm 2>&1 | FileCheck %s -check-prefix=CHECK-SECTION-SIZE

# CHECK-SECTION-SIZE: '{{.*}}.wasm': Section too large

Fix use of `echo` command in test script
Fix use of `echo` command in test script

On win32 we use lit's executeBuiltinEcho to implement the
echo command and this version only currently supports flags
that are separate.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@333495 91177308-0d34-0410-b5e6-96231b3b80d8
