From e091b977de2ef27db927dd01212e7ace0beac1c8 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 2 Jun 2013 23:39:14 +0200 Subject: [PATCH] tests: Use bash to get consistent test results. --- tests/example-redirects.sh | 5 ++++- tests/example-redirects.sh.expected | 6 +++--- tests/example-simple.sh | 5 ++++- tests/example-simple.sh.expected | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) 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