diff --git a/test/50/expected.out b/test/50/expected.out index 153e94a658..0fce8c312f 100644 --- a/test/50/expected.out +++ b/test/50/expected.out @@ -4,4 +4,4 @@ # compile args [1/2] Compiling foo # link args -[2/2] Linking foo.exe +[2/2] Linking foo diff --git a/test/50/test.sh b/test/50/test.sh index f98fa48325..fe9549c5f4 100755 --- a/test/50/test.sh +++ b/test/50/test.sh @@ -7,19 +7,24 @@ cd foo ${LAKE} build echo "# issue 50" | tee ../produced.out -${LAKE} build -KleanArgs=-DwarningAsError=true |& tee -a ../produced.out +${LAKE} build -KleanArgs=-DwarningAsError=true | tee -a ../produced.out ${LAKE} build echo "# issue 172" | tee -a ../produced.out -${LAKE} build -KweakLeanArgs=-DwarningAsError=true |& tee -a ../produced.out +${LAKE} build -KweakLeanArgs=-DwarningAsError=true | tee -a ../produced.out ${LAKE} build echo "# compile args" | tee -a ../produced.out -${LAKE} build -KleancArgs=-DBAR |& tee -a ../produced.out +${LAKE} build -KleancArgs=-DBAR | tee -a ../produced.out ${LAKE} build echo "# link args" | tee -a ../produced.out -${LAKE} build -KlinkArgs=-Lbuild/lib |& tee -a ../produced.out +${LAKE} build -KlinkArgs=-Lbuild/lib | tee -a ../produced.out # test -diff --strip-trailing-cr ../expected.out ../produced.out +if [ "$OS" = Windows_NT ]; then + sed -i 's/.exe//g' ../produced.out + diff --strip-trailing-cr ../expected.out ../produced.out +else + diff ../expected.out ../produced.out +fi