Searched defs:err_exit (Results 76 - 87 of 87) sorted by relevance

1234

/illumos-gate/usr/src/lib/libshell/common/tests/
H A Dpath.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
36 [[ -s out1 ]] && err_exit 'type should not write on stdout for not found case'
37 [[ -s out2 ]] || err_exit 'type should write on stderr for not found case'
51 [[ $( foobar) == foobar1 ]] || err_exit 'foobar should output foobar1'
54 [[ $(foobar) == foobar2 ]] || err_exit 'foobar should output foobar2'
57 [[ $(foobar) == foobar1 ]] || err_exit 'foobar should output foobar1 again'
60 [[ ${ foobar;} == foobar2 ]] || err_exit 'fooba
[all...]
H A Dsun_solaris_compoundvario.sh27 function err_exit function
33 alias err_exit='err_exit $LINENO'
158 } || err_exit "test returned exit code $?"
160 [[ "${s}" == "xhellox" ]] || err_exit "Expected 'xhellox', got ${s}"
161 count_brackets "$y" || err_exit "y: bracket open ${bracketstat.bopen} != bracket close ${bracketstat.bclose}"
162 count_brackets "$(print -v y)" || err_exit "y: bracket open ${bracketstat.bopen} != bracket close ${bracketstat.bclose}"
163 count_brackets "$(print -C y)" || err_exit "y: bracket open ${bracketstat.bopen} != bracket close ${bracketstat.bclose}"
166 unset x y || err_exit "unset failed"
167 [[ "$x" == "" ]] || err_exit "cleanu
[all...]
H A Dsun_solaris_builtin_tail.sh33 function err_exit function
39 alias err_exit='err_exit $LINENO'
101 # quote input string but use single-backslash that "err_exit" prints
111 # quote input string but use double-backslash that "err_exit" prints
124 builtin mktemp || err_exit "mktemp builtin not found"
125 builtin rm || err_exit "rm builtin not found"
126 builtin tail || err_exit "tail builtin not found"
133 tmpdir="$(mktemp -t -d "test_sun_solaris_builtin_tail.XXXXXXXX")" || err_exit "Cannot create temporary directory"
135 cd "${tmpdir}" || { err_exit "c
[all...]
H A Dvariables.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
34 [[ ${.sh.version} == "$KSH_VERSION" ]] || err_exit '.sh.version != KSH_VERSION'
36 [[ ${@ss} ]] && err_exit '${@ss} should be empty string when ss is unset'
37 [[ ${!ss} == ss ]] || err_exit '${!ss} should be ss when ss is unset'
38 [[ ${#ss} == 0 ]] || err_exit '${#ss} should be 0 when ss is unset'
41 then err_exit RANDOM variable not working
46 then err_exit SECOND
[all...]
H A Dcomvar.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
36 then err_exit 'compound variable not working'
40 then err_exit 'reference to compound object not working'
53 then err_exit 'copying a compound object not working'
56 then err_exit 'copying integer field of compound object not working'
66 then err_exit 'compound assignemnt of associative arrays not working'
73 then err_exit 'name references not expanded on prefix matching'
80 [[ ${x.foo.bar} == 7 ]] || err_exit '[[
[all...]
H A Dnameref.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
38 then err_exit "foo=$foo != bar=$bar"
42 then err_exit "foo=$foo != bar=$bar"
46 then err_exit "foo.child=${foo.child} != bar=${bar.child}"
58 then err_exit ".foo.bar=${.foo.bar} != hello"
61 then err_exit ".foo.bar.child=${.foo.bar.child} != child"
81 then err_exit "namere
[all...]
H A Dtypes.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
47 [[ $r == "$s" ]] || err_exit 'r is not equal to s'
53 [[ $y == "$z" ]] || err_exit 'y is not equal to z'
55 [[ $y == "${s.y}" ]] || err_exit 'y is not equal to s.y'
58 [[ $www == "$z" ]] || err_exit 'www is not equal to z'
60 [[ ${s.x} == "${r.x}" ]] || err_exit 's.x is not equal to r.x'
67 [[ $x == "$y" ]] || err_exit "
[all...]
H A Dfunctions.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
33 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
56 then err_exit "command print not working inside print function"
61 then err_exit 'global variables not correct'
65 then err_exit '$0 not correct'
69 then err_exit 'environment override not correct'
72 then err_exit 'scoping error'
76 then err_exit no
[all...]
/illumos-gate/usr/src/cmd/tail/tests/
H A Dsun_solaris_tail.sh34 function err_exit function
40 alias err_exit='err_exit $LINENO'
102 # quote input string but use single-backslash that "err_exit" prints
112 # quote input string but use double-backslash that "err_exit" prints
125 builtin mktemp || err_exit "mktemp builtin not found"
126 builtin rm || err_exit "rm builtin not found"
127 # builtin tail || err_exit "tail builtin not found"
134 tmpdir="$(mktemp -t -d "test_sun_solaris_builtin_tail.XXXXXXXX")" || err_exit "Cannot create temporary directory"
136 cd "${tmpdir}" || { err_exit "c
[all...]
/illumos-gate/usr/src/cmd/auditd/
H A Dauditd.c128 * err_exit() - exit function after the unsuccessful call to auditon();
132 err_exit(char *msg) function
533 err_exit(NULL);
575 err_exit(NULL);
831 err_exit(msg);
847 err_exit(msg);
869 err_exit(msg);
881 err_exit(msg);
909 err_exit(msg);
927 err_exit(ms
[all...]
/illumos-gate/usr/src/cmd/vrrpadm/
H A Dvrrpadm.c142 static void err_exit(const char *, ...);
159 err_exit("operation failed: %s", vrrp_err2str(err));
202 err_exit("invalid data-link name %s", optarg);
207 err_exit("duplicate '-i' option");
215 err_exit("invalid advertisement interval");
220 err_exit("duplicate '-p' option");
227 err_exit("invalid priority");
234 err_exit("invalid options: %s", optarg);
237 err_exit("duplicate '-o preempt' option");
239 err_exit("duplicat
701 err_exit(const char *format, ...) function
[all...]
/illumos-gate/usr/src/cmd/modload/
H A Ddrvsubr.c165 err_exit();
250 err_exit();
921 err_exit(void) function

Completed in 109 milliseconds

1234