X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fcond42.sh;h=b3d0305cee8ac3605937fc52f0d88c631f95f5fd;hb=b9951d654abb76c5419f1e2b453f1ca06fdb331b;hp=d4eee010429e610963f9d2f6479339948dd9e21f;hpb=76f0605a6dd790ab43cc608db11ac2141ddf46c0;p=platform%2Fupstream%2Fautomake.git diff --git a/t/cond42.sh b/t/cond42.sh index d4eee01..b3d0305 100755 --- a/t/cond42.sh +++ b/t/cond42.sh @@ -18,7 +18,7 @@ # This shouldn't happen with user input, as _AM_COND_* are not documented, # but better to be safe. -. ./defs || Exit 1 +. test-init.sh cat >>configure.ac <<'END' AM_CONDITIONAL([COND], [:]) @@ -54,6 +54,6 @@ _AM_COND_ENDIF/' AUTOMAKE_fails grep '^configure\.ac:7:.* not enough arguments.* _AM_COND_IF' stderr grep '^configure\.ac:8:.* not enough arguments.* _AM_COND_ENDIF' stderr -test 2 = `grep -c 'not enough arguments' stderr` +test 2 -eq $($FGREP -c 'not enough arguments' stderr) :