From 9f5a22f4e5ca6d97484defe0a4012f50f2c3332a Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 4 Jan 2010 09:49:23 +0000 Subject: [PATCH] Regression test for r201456. --- .../usr.bin/make/syntax/directive-t0/Makefile | 8 ++++++++ .../make/syntax/directive-t0/expected.status.1 | 1 + .../make/syntax/directive-t0/expected.stderr.1 | 2 ++ .../make/syntax/directive-t0/expected.stdout.1 | 0 .../usr.bin/make/syntax/directive-t0/test.t | 14 ++++++++++++++ 5 files changed, 25 insertions(+) create mode 100644 tools/regression/usr.bin/make/syntax/directive-t0/Makefile create mode 100644 tools/regression/usr.bin/make/syntax/directive-t0/expected.status.1 create mode 100644 tools/regression/usr.bin/make/syntax/directive-t0/expected.stderr.1 create mode 100644 tools/regression/usr.bin/make/syntax/directive-t0/expected.stdout.1 create mode 100644 tools/regression/usr.bin/make/syntax/directive-t0/test.t diff --git a/tools/regression/usr.bin/make/syntax/directive-t0/Makefile b/tools/regression/usr.bin/make/syntax/directive-t0/Makefile new file mode 100644 index 000000000000..0f95a2161164 --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/directive-t0/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ +# +# A typo'ed directive. +# + +.uudef foo + +all: diff --git a/tools/regression/usr.bin/make/syntax/directive-t0/expected.status.1 b/tools/regression/usr.bin/make/syntax/directive-t0/expected.status.1 new file mode 100644 index 000000000000..d00491fd7e5b --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/directive-t0/expected.status.1 @@ -0,0 +1 @@ +1 diff --git a/tools/regression/usr.bin/make/syntax/directive-t0/expected.stderr.1 b/tools/regression/usr.bin/make/syntax/directive-t0/expected.stderr.1 new file mode 100644 index 000000000000..de66fcc37752 --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/directive-t0/expected.stderr.1 @@ -0,0 +1,2 @@ +"Makefile", line 6: Unknown directive +make: fatal errors encountered -- cannot continue diff --git a/tools/regression/usr.bin/make/syntax/directive-t0/expected.stdout.1 b/tools/regression/usr.bin/make/syntax/directive-t0/expected.stdout.1 new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tools/regression/usr.bin/make/syntax/directive-t0/test.t b/tools/regression/usr.bin/make/syntax/directive-t0/test.t new file mode 100644 index 000000000000..4b71de3f56be --- /dev/null +++ b/tools/regression/usr.bin/make/syntax/directive-t0/test.t @@ -0,0 +1,14 @@ +#! /bin/sh +# $FreeBSD$ + +cd `dirname $0` +. ../../common.sh + +# Description +DESC="A typo'ed directive." + +# Run +TEST_N=1 +TEST_1= + +eval_cmd $*