Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sbin/ifconfig



On Fri, Mar 16, 2012 at 10:25:08PM -0400, Christos Zoulas wrote:
> Module Name:  src
> Committed By: christos
> Date:         Sat Mar 17 02:25:08 UTC 2012
> 
> Modified Files:
>       src/sbin/ifconfig: af_inetany.c
> 
> Log Message:
> PR/43141: Tobias Nygren: Print an error on unknown interfaces.

Now this is trival and it is fixed. But I guess there is a bug here in ATF.
The test only checks that the exit code is not zero:

        atf_check -s not-exit:0 ifconfig nonexistent0 1.2.3.4/24

But why is stderr being involved?

Fail: stderr not empty
--- /dev/null   2012-03-17 15:38:12.000000000 +0000
+++ /tmp/check.09347a/stderr    2012-03-17 15:40:11.000000000 +0000
@@ -0,0 +1 @@
+ifconfig: commit_address: getifinfo: Device not configured

- Jukka.


Home | Main Index | Thread Index | Old Index