On Fri, Mar 11, 2016 at 10:43:02AM +0800, Fei Jie wrote:
> * tests/uname.test: Use uniq to filter strace output.
> ---
> tests/uname.test | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/tests/uname.test b/tests/uname.test
> index d11af15..500fbfe 100755
> --- a/tests/uname.test
> +++ b/tests/uname.test
> @@ -4,8 +4,12 @@
>
> . "${srcdir=.}/init.sh"
>
> +check_prog uniq
> +
> run_prog > /dev/null
> OUT="$LOG.out"
> +EXP="$LOG.exp"
> run_strace -v -euname $args >"$OUT"
> -match_diff "$LOG" "$OUT"
> -rm -f "$OUT"
> +uniq "$LOG" "$EXP"
> +match_diff "$EXP" "$OUT"
> +rm -f "$EXP" "$OUT"Applied with two corrections: swapped names for OUT and EXP (so that $EXP contains expected output and $OUT - filtered output), and changed uniq usage to more traditional. -- ldv
pgp4fQWhPCOwt.pgp
Description: PGP signature
------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________ Strace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
