From ce175cc3df83f9245c46e8f6e56c7cc9f3802924 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Thu, 28 Jan 2016 14:55:08 +0000 Subject: [PATCH] test stdout stderr for TAP --- tests/TAP/.expected-output | 2 ++ tests/TAP/.testsuite/a | 3 +++ tests/TAP/.testsuite/b | 3 +++ 3 files changed, 8 insertions(+) diff --git a/tests/TAP/.expected-output b/tests/TAP/.expected-output index aae0e3e..5d79c31 100644 --- a/tests/TAP/.expected-output +++ b/tests/TAP/.expected-output @@ -1,6 +1,8 @@ # Begin - .testsuite/ not ok 1 - a # ------------ Begin output ------------ +# This is stderr from a. +# This is stdout from a. # ------------ End output ------------ ok 2 - b ok 3 - # SKIP c diff --git a/tests/TAP/.testsuite/a b/tests/TAP/.testsuite/a index c508d53..c68153e 100755 --- a/tests/TAP/.testsuite/a +++ b/tests/TAP/.testsuite/a @@ -1 +1,4 @@ +#!/bin/sh +echo This is stderr from a. > /dev/stderr +echo This is stdout from a. > /dev/stdout false diff --git a/tests/TAP/.testsuite/b b/tests/TAP/.testsuite/b index 27ba77d..4dd2598 100755 --- a/tests/TAP/.testsuite/b +++ b/tests/TAP/.testsuite/b @@ -1 +1,4 @@ +#!/bin/sh +echo This is stderr from b. > /dev/stderr +echo This is stdout from b. > /dev/stdout true