File: error.t

package info (click to toggle)
posh 0.5.4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,996 kB
  • ctags: 1,587
  • sloc: ansic: 14,683; xml: 1,482; sh: 1,097; perl: 943; makefile: 102
file content (25 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# These tests deal with quoting.
#
name: error-1
description:
	Check that failure to find a command returns the proper
	exit status.
category: debian,posix
stdin:
	(ridiculouscommandname) 2>/dev/null || echo $?
expected-stdout:
	127
---
name: error-2
description:
	Check that failure to execute a command returns the proper
	exit status.
category: debian,posix
stdin:
	TEMPFILE=$(tempfile --prefix posix)
	chmod 0 $TEMPFILE
	($TEMPFILE) 2>/dev/null || echo $?
	rm -f $TEMPFILE
expected-stdout:
	126
---