ATF-devel archive

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

Re: CVS commit: src/tests/lib/libc/ssp (fwd)



On Mon, 27 Dec 2010, Julio Merino wrote:

On Mon, Dec 27, 2010 at 6:31 AM, Paul Goyette <paul%whooppee.com@localhost> 
wrote:
OK, previously reported problem has been resolved!

It seems that

       cmd="echo blah | prog"
       atf_check .... $cmd

doesn't do what was expected.  So I changed the test script to

       cmd="prog" ; stdin="echo blah |"
       eval $stdin atf_check .... $cmd

and it seems to work much better.   :)

atf_check has a -x flag to pass the command through /bin/sh instead of
executing it with directly with exec().  That makes pipelines work.

Can you try to see if this actually does work and update the tests
accordingly for less black magic?

It does not work.  :(

In this case, I need to use

        atf_check -x -s signal:6 "echo foo | test_prog"

Even though test_prog exits with signal 6 (SIGABRT), the shell process does not (it exits normally). The test case reports

        tc-se:Fail: program did not receive a signal


BTW, it does not appear that "-s signal:name" works. I've tried ABRT, ABORT, SIGABRT, and SIGABORT and all fail with

        tc-se:atf-check: ERROR: Invalid signal name or number in -s option




-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index