[PATCH 2/4] tests: add option_u.test

Dmitry V. Levin ldv at altlinux.org
Thu Mar 24 22:48:31 UTC 2016


On Wed, Mar 23, 2016 at 04:56:37PM +0800, Zhou Wenjian wrote:
> --- /dev/null
> +++ b/tests/option_u.test
> @@ -0,0 +1,13 @@
> +#!/bin/sh
> +
> +# Check option -u.
> +
> +. "${srcdir=.}/init.sh"
> +
> +user=$(tail -n 1 /etc/passwd | awk -F ":" '{print $1}')

What is it?

> +OUT="$LOG.out"
> +run_prog whoami
> +run_strace -u $user $args > "$OUT"

Really?

> +echo $user > "$LOG"
> +match_diff "$LOG" "$OUT"

Does it have anything to do with strace?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160325/78799ceb/attachment.bin>


More information about the Strace-devel mailing list