[Bug 194828] [test] lib.libc.sys.getcontext_test.setcontext_link fails on amd64, not i386

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 14 07:34:11 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194828

Garrett Cooper,425-314-3911 <ngie at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmmv at FreeBSD.org

--- Comment #11 from Garrett Cooper,425-314-3911 <ngie at FreeBSD.org> ---
(In reply to Craig Rodrigues from comment #10)
> You can do the following to determine how to run an ATF test
> outside of kyua.
> 
> (1)  List the tests with: cd /usr/tests; kyua list
> 
> The ones of interest are:
> 
> lib/libc/sys/getcontext_test:getcontext_err
> lib/libc/sys/getcontext_test:setcontext_err
> lib/libc/sys/getcontext_test:setcontext_link
> 
> 
> (2)  To run all three tests:
> 
> cd /usr/tests; kyua test lib/libc/sys/getcontext_test
> 
> 
> (3)  To run just one test:
> 
> cd /usr/tests; kyua test lib/libc/sys/getcontext_test:setcontext_link
> 
> (4)  To run one ATF test outside of kyua:
> 
> cd /usr/tests; ./lib/libc/sys/getcontext_test setcontext_link

Sorry for taking so long to get back to you jhb@!

I have a couple notes to add to what rodrigc said above (thanks BTW for helping
with this):

In the above example, 4. runs getcontext_test:setcontext_link without
isolation,
which means that if the test cores, generates files, etc, it will pollute the
directory that you're running from. However, there are times where (for
example)
if the handler was buggy, e.g. coredumped/segfaulted, failed to properly parse
output/handle the execution, you would need to execute the test app without
isolation. In general, it's highly discouraged though. Which leads me into the
following...

(1) Execute the command with debug, which will dump all output to
stdout/stderr:

cd /usr/tests; kyua debug lib/libc/sys/getcontext_test:setcontext_link

Older versions of ATF had gdb integration, but this might not be in kyua. Let
me dig around a bit more and determine whether or not that's possible still...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-testing mailing list