Pádraig Brady <[email protected]> writes:
> FYI we've just pushed a new test in the attached that uses
> strace to inject errors for testing, like:
>
> $ strace -o /dev/null -P /dev/null -e fault=read:error=EIO \
> cat /dev/null
> cat: /dev/null: Input/output error
Interesting, I guess I haven't looked at the man page much.
You can do other interesting things like run programs with non-existent
users:
$ sudo strace -o /dev/null -u 100000:100000 whoami
whoami: cannot find name for user ID 100000
Collin