Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 2014 07:34:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-testing@freebsd.org
Subject:   [Bug 194828] [test] lib.libc.sys.getcontext_test.setcontext_link fails on amd64, not i386
Message-ID:  <bug-194828-32464-19eUnewzIA@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-194828-32464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-194828-32464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194828

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

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

--- Comment #11 from Garrett Cooper,425-314-3911 <ngie@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194828-32464-19eUnewzIA>