Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2011 06:01:06 +0000 (UTC)
From:      Max Khon <fjoe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228523 - head/tools/regression/usr.bin/make/execution/joberr
Message-ID:  <201112150601.pBF616TW032053@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fjoe
Date: Thu Dec 15 06:01:06 2011
New Revision: 228523
URL: http://svn.freebsd.org/changeset/base/228523

Log:
  Add job error output test.
  
  make(1) with openpty() currently fails this test: there's a race condition
  and error output is sometimes lost.

Added:
  head/tools/regression/usr.bin/make/execution/joberr/
  head/tools/regression/usr.bin/make/execution/joberr/Makefile   (contents, props changed)
  head/tools/regression/usr.bin/make/execution/joberr/expected.status.1   (contents, props changed)
  head/tools/regression/usr.bin/make/execution/joberr/expected.stderr.1   (contents, props changed)
  head/tools/regression/usr.bin/make/execution/joberr/expected.stdout.1   (contents, props changed)
  head/tools/regression/usr.bin/make/execution/joberr/test.t   (contents, props changed)

Added: head/tools/regression/usr.bin/make/execution/joberr/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/execution/joberr/Makefile	Thu Dec 15 06:01:06 2011	(r228523)
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+check-jobherr:
+.for _t in 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
+	@-${MAKE} -f ${MAKEFILE} -j2 do-$@
+.endfor
+
+do-check-joberr:
+	@echo "Error: build failed"
+	@exit 1

Added: head/tools/regression/usr.bin/make/execution/joberr/expected.status.1
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/execution/joberr/expected.status.1	Thu Dec 15 06:01:06 2011	(r228523)
@@ -0,0 +1 @@
+0

Added: head/tools/regression/usr.bin/make/execution/joberr/expected.stderr.1
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/execution/joberr/expected.stderr.1	Thu Dec 15 06:01:06 2011	(r228523)
@@ -0,0 +1,30 @@
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error
+1 error

Added: head/tools/regression/usr.bin/make/execution/joberr/expected.stdout.1
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/execution/joberr/expected.stdout.1	Thu Dec 15 06:01:06 2011	(r228523)
@@ -0,0 +1,90 @@
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+Error: build failed
+*** Error code 1
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)

Added: head/tools/regression/usr.bin/make/execution/joberr/test.t
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/tools/regression/usr.bin/make/execution/joberr/test.t	Thu Dec 15 06:01:06 2011	(r228523)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# $FreeBSD$
+
+cd `dirname $0`
+. ../../common.sh
+
+# Description
+DESC="Test job make error output"
+
+# Run
+TEST_N=1
+TEST_1=
+
+eval_cmd $*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112150601.pBF616TW032053>