Searched refs:got (Results 1 - 25 of 138) sorted by relevance

123456

/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/B/t/
H A Dstash.t24 my $got;
32 chomp($got = `$^X $path "-MB::Stash" "-Mwarnings" -e1`);
34 $got =~ s/-u//g;
36 print "# got = $got\n";
38 my @got = map { s/^\S+ //; $_ }
41 split /,/, $got;
44 print "# got = @got\n";
46 @got
[all...]
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/
H A Dread.t10 $got = read(FOO,$buf,4);
12 print ($got == 4 ? "ok 1\n" : "not ok 1\n");
16 $got = read(FOO,$buf,4);
18 print ($got == 0 ? "ok 3\n" : "not ok 3\n");
H A Dchop.t33 $got = chomp();
34 ok ($got == 1) or print "# got $got\n";
38 $got = chomp();
39 ok ($got == 1) or print "# got $got\n";
43 $got = chomp();
44 ok ($got
[all...]
H A Dhashwarn.t34 my($num, $got, $expected) = @_;
39 $ok = ($got =~ /$pattern/);
40 test $num, $ok, "Expected pattern /$pattern/, got '$got'\n";
42 $ok = ($got eq $expected);
43 test $num, $ok, "Expected string '$expected', got '$got'\n";
45 # print "# $num: $got\n";
H A Dpow.t68 my $got = $base ** $n;
69 within ($got, $expect, $range, "$base ** $n got[$got] expect[$expect]");
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Text/
H A DSoundex.t54 $try = "\@expect = $out; \@got = &soundex $in;";
57 if (@expect != @got)
61 print "# expected ", scalar @expect, " results, got ", scalar @got, "\n";
63 ") got (", join (', ', @got), ")\n";
67 while (@got)
70 $got = shift @got;
72 if ($expect ne $got)
[all...]
/opensolaris-onvv-gate/usr/src/lib/libshell/common/tests/
H A Dsigchld.sh62 (( foreground == FOREGROUND )) || err_exit "expected '$FOREGROUND foreground' -- got '$foreground' (DELAY=$DELAY)"
63 (( background == BACKGROUND )) || err_exit "expected '$BACKGROUND background' -- got '$background' (DELAY=$DELAY)"
71 got=$($SHELL -c '
85 [[ $got == $exp ]] || err_exit "SIGCHLD trap queueing failed -- expected '$exp', got '$got'"
87 got=$($SHELL -c '
109 [[ $got == $exp ]] || err_exit "SIGCHLD trap queueing failed -- expected $(printf %q "$exp"), got $(printf %q "$got")"
[all...]
H A Dpath.sh169 got=$($SHELL -c "unset FPATH; PATH=/dev/null; $cmd" 2>&1)
170 [[ $got == $exp ]] && err_exit "$cmd as last command should not find ./$cmd with PATH=/dev/null"
171 got=$($SHELL -c "unset FPATH; PATH=/dev/null; $cmd" 2>&1)
172 [[ $got == $exp ]] && err_exit "$cmd should not find ./$cmd with PATH=/dev/null"
174 got=$(unset FPATH; PATH=/dev/null; whence ./$cmd)
175 [[ $got == $exp ]] || err_exit "whence $cmd should find ./$cmd with PATH=/dev/null"
177 got=$(unset FPATH; PATH=/dev/null; whence $PWD/$cmd)
178 [[ $got == $exp ]] || err_exit "whence \$PWD/$cmd should find ./$cmd with PATH=/dev/null"
182 got=$($SHELL -c "unset FPATH; PATH=/dev/null; whence ./notfound" 2>&1)
183 [[ $got
[all...]
H A Dexpand.sh105 got=$(eval print -r -- "$pattern")
106 [[ $got == $expected ]] || err_exit "'$pattern' failed -- expected '$expected' got '$got'"
107 #print -r -- " '$pattern' '$got' \\"
H A Dsubshell.sh118 (( no == (BS * nb) )) || err_exit "shell hangs on command substitution output size >= $BS*$nb with write size $bs -- expected $((BS*nb)), got ${no:-0}"
133 (( no == (BS * nb) )) || err_exit "shell hangs on command substitution output size >= $BS*$nb with write size $bs and trailing redirection -- expected $((BS*nb)), got ${no:-0}"
171 do if ! got=$($TEST_shell "$cmd")
173 elif [[ "$got" != "$exp" ]]
175 GOT=$(printf %q "$got")
176 err_exit "${TEST_shell/*-c/\$SHELL -c} ${TEST_unset:+unset }${TEST_fork:+fork }$txt command substitution failed -- expected $EXP, got $GOT"
267 got=$?
268 [[ $got == $exp ]] || err_exit "getopts --man runtime callout with nonzero exit terminates shell -- expected '$exp', got '$got'"
[all...]
H A Dcubetype.sh57 exp=3 got=${b.x}
58 [[ "$got" == "$exp" ]] || err_exit "\${b.x} incorrect for iteration $i -- expected $exp, got '$got'"
59 exp=5 got=$(( b.len ))
60 (( got == exp )) || err_exit "b.len incorrect for iteration $i -- expected $exp, got '$got = sqrt(${b.x}*${b.x}+${b.y}*${b.y})'"
61 exp=5 got=${b.len}
62 [[ "$got"
[all...]
H A Dstatics.sh74 got=$(
85 [[ $got != $expected ]] && err_exit "static array var failed -- expected '$expected', got '$got'"
H A Dsun_solaris_cr_6805794_character_to_wchar_not_working.sh101 [[ "${str}" == "8364" ]] || err_exit "expected 8364, got ${str}"
H A Dcoprocess.sh110 got=$REPLY
111 if [[ $got != $exp ]]
112 then err_exit "${SHELL-ksh} coprocess io failed -- got '$got', expected '$exp'"
156 [[ $r == $e ]] || err_exit "coprocess timing bug -- expected $e, got '$r'"
168 [[ $r == $e ]] || err_exit "coprocess command substitution bug -- expected $e, got '$r'"
246 got=$(print -r $'#00315
251 [[ $got == $exp ]] || err_exit "coshell(3) identification sequence failed -- expected '$exp', got '$got'"
[all...]
H A Doptions.sh63 got=$($SHELL -E -c : 2>/dev/null)
66 got=$(printf %q "$got")
67 err_exit "\$ENV file &>/dev/null does not redirect stdout -- expected '', got $got"
69 got=$($SHELL -E -c : 2>&1 >/dev/null)
70 if [[ $got != *nonstandard* || $got == *$'\n'* ]]
72 got=$(printf %q "$got")
[all...]
H A Dtypes.sh122 got=$(. $tmp/types) 2>/dev/null
123 [[ "$got" == "$expected" ]] || err_exit "typedefs in dot script failed -- expected '$expected', got '$got'"
202 got=${x.b}
203 [[ "$got" == "$expected" ]] || err_exit "type '_' reference failed -- expected '$expected', got '$got'"
218 got=${ tst.f;}
219 [[ "$got"
[all...]
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Net/t/
H A Dlibnet_t.pl14 my ($got, $expected, $name) = @_;
16 for ($got, $expected) {
20 unless (ok($got eq $expected, $name)) {
21 warn "Got: '$got'\nExpected: '$expected'\n" . join(' ', caller) . "\n";
/opensolaris-onvv-gate/usr/src/cmd/sendmail/libsm/
H A Dt-match.c20 got = sm_match(str, pat); \
21 if (!SM_TEST(got == want)) \
24 str, pat, got ? "true" : "false");
31 bool got; local
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/t/comp/
H A Dutf.t25 my $got = do "./utf.pl";
26 is($got, $tag);
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/
H A DBenchmark.t134 my $got = timethis($iterations, sub {++$foo});
136 isa_ok($got, 'Benchmark', "timethis CODEREF");
139 $got = $out->read();
140 like ($got, qr/^timethis $iterations/, 'default title');
141 like ($got, $Default_Pattern, 'default format is all or noc');
145 $got = timethis($iterations, '++$bar');
147 isa_ok($got, 'Benchmark', "timethis eval");
150 $got = $out->read();
151 like ($got, qr/^timethis $iterations/, 'default title');
152 like ($got,
[all...]
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/t/uni/
H A Dchomp.t79 my $got = chomp();
80 is ($got, 0);
85 my $got = chomp();
86 is ($got, 1);
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/ext/I18N/Langinfo/t/
H A DLanginfo.t61 my $got = langinfo(&$try);
62 if (ref $want{$try} && $got =~ $want{$try} || $got eq $want{$try}) {
63 print qq[ok $i - $try is "$got"\n];
65 print qq[not ok $i - $try is "$got" not "$want{$try}"\n];
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/t/
H A Dtest.pl136 my ($got, $expected, $name, @mess) = @_;
139 if( !defined $got || !defined $expected ) {
141 $pass = !defined $got && !defined $expected;
144 $pass = $got eq $expected;
148 unshift(@mess, "# got "._q($got)."\n",
155 my ($got, $isnt, $name, @mess) = @_;
158 if( !defined $got || !defined $isnt ) {
160 $pass = defined $got || defined $isnt;
163 $pass = $got n
[all...]
/opensolaris-onvv-gate/usr/src/lib/libwrap/
H A Dmisc.c41 int got; local
45 got = strlen(ptr);
46 if (got >= 1 && ptr[got - 1] == '\n') {
48 if (got >= 2 && ptr[got - 2] == '\\') {
49 got -= 2;
54 ptr += got;
55 len -= got;
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Tie/Array/
H A Dpush.t23 tie @got,Basic;

Completed in 198 milliseconds

123456