From: Simon Ruderich Date: Sun, 2 Jun 2013 21:39:14 +0000 (+0200) Subject: tests: Use bash to get consistent test results. X-Git-Tag: 0.1~122 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e091b977de2ef27db927dd01212e7ace0beac1c8;p=coloredstderr%2Fcoloredstderr.git tests: Use bash to get consistent test results. --- diff --git a/tests/example-redirects.sh b/tests/example-redirects.sh index 8ac150d..e5c1601 100755 --- a/tests/example-redirects.sh +++ b/tests/example-redirects.sh @@ -1,4 +1,7 @@ -#!/bin/sh +#!/bin/bash + +# Use bash to get consistent test results, /bin/sh can point to multiple +# shells with different behaviour. # Copyright (C) 2013 Simon Ruderich # diff --git a/tests/example-redirects.sh.expected b/tests/example-redirects.sh.expected index b702b14..f58a034 100644 --- a/tests/example-redirects.sh.expected +++ b/tests/example-redirects.sh.expected @@ -1,8 +1,8 @@ ->stderr>write to stderr 1 +>stderr>writestderr> stderr>tostderr> stderr>stderrstderr> stderr>1stderr> stderr>write to stdout which gets redirected to stderr +>stderr>writestderr> stderr>tostderr> stderr>stdoutstderr> stderr>whichstderr> stderr>getsstderr> stderr>redirectedstderr> stderr>tostderr> stderr>stderrstderr> stderr>another redirect to stderr +>stderr>anotherstderr> stderr>redirectstderr> stderr>tostderr> stderr>stderrstderr> stderr>write to stderr +>stderr>writestderr> stderr>tostderr> stderr>stderrstderr> stderr>write to stderr without newline