From b3550e0a15e03db122ee5f31f8b71cc97d41fb29 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sat, 14 Aug 2010 21:56:57 +0200 Subject: [PATCH] test: Avoid using "echo -n" for portability reasons --- test.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index da521d692..e3594e40f 100755 --- a/test.sh +++ b/test.sh @@ -398,10 +398,16 @@ EOF CCACHE_COMPILERCHECK="echo ./compiler.sh" $CCACHE ./compiler.sh -c test1.c checkstat 'cache hit (preprocessed)' 1 checkstat 'cache miss' 1 - CCACHE_COMPILERCHECK='echo bar' $CCACHE ./compiler.sh -c test1.c + cat <foobar.sh +#!/bin/sh +echo foo +echo bar +EOF + chmod +x foobar.sh + CCACHE_COMPILERCHECK='./foobar.sh' $CCACHE ./compiler.sh -c test1.c checkstat 'cache hit (preprocessed)' 1 checkstat 'cache miss' 2 - CCACHE_COMPILERCHECK='echo -n b; echo ar' $CCACHE ./compiler.sh -c test1.c + CCACHE_COMPILERCHECK='echo foo; echo bar' $CCACHE ./compiler.sh -c test1.c checkstat 'cache hit (preprocessed)' 2 checkstat 'cache miss' 2 -- 2.47.3