CVS log for src/tests/lib/libc/sys/t_ptrace_wait.h
Up to [cvs.NetBSD.org] / src / tests / lib / libc / sys
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.36: download - view: text, markup, annotated - select for diffs
Tue May 14 16:06:20 2024 UTC (6 months, 3 weeks ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -1
lines
t_ptrace_wait: No FPU exception traps on RISC-V.
This macro is not named correctly -- RISC-V does implement
floating-point exceptions, but only via sticky status bits, not via
machine traps.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue May 14 16:04:17 2024 UTC (6 months, 3 weeks ago) by riastradh
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -2
lines
t_ptrace_wait: Force result by write to volatile, not call to usleep.
This is causing each FPE-related test to time out because it's
actually passinga large number to usleep, which now respects large
numbers.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue May 24 20:08:38 2022 UTC (2 years, 6 months ago) by andvar
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -2
lines
s/estabilishing/establishing/ in copy pasted comment.
Revision 1.32.4.1: download - view: text, markup, annotated - select for diffs
Mon May 31 22:15:23 2021 UTC (3 years, 6 months ago) by cjep
Branches: cjep_staticlib_x
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -1
lines
sync with head
Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon May 24 10:44:06 2021 UTC (3 years, 6 months ago) by gson
Branches: MAIN
CVS tags: thorpej-futex2-base,
thorpej-futex2,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -1
lines
On mips, avoid deliberately executing an illegal instruction for now
because it causes GXemul to exit rather than generating a trap. A bug
report has been sent to the GXemul author.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Jun 22 12:21:02 2020 UTC (4 years, 5 months ago) by rin
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
cjep_staticlib_x-base
Branch point for: cjep_staticlib_x
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +17 -7
lines
Work around QEMU bug #1668041 differently, by which floating-point
division by zero is not correctly trapped for i386 and amd64:
https://bugs.launchpad.net/qemu/+bug/1668041
Make trigger_fpe() cause integer division by zero for x86, and
floating-point one for other architectures. Also, assertions for
si_code in *_crash_fpe tests are commented out for now. They
should be cleaned up after the bug is fixed.
Now, *_crash_fpe tests are working also on powerpc.
Suggested by kamil.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Jun 22 02:51:06 2020 UTC (4 years, 5 months ago) by rin
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +7 -3
lines
Turn trigger_fpe() back to integer division by zero for a while
until QEMU bug #1668041 is fixed:
https://bugs.launchpad.net/qemu/+bug/1668041
by which floating-point division by zero is not trapped correctly
both on amd64 and i386.
Skip *_crash_fpe tests on powerpc, where integer division by zero
is never trapped.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Jun 17 08:42:16 2020 UTC (4 years, 5 months ago) by rin
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -5
lines
Let trigger_fpe() cause floating-point divide by zero exception, instead of
integer one, which is not trapped for powerpc and aarch64.
Note that it is checked in lib/libc/gen/t_siginfo whether integer divide by
zero is interpreted as SIGFPE or not.
Now, all *_crash_fpe tests pass for powerpc, and nothing changes for amd64
at least.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Jun 17 08:23:18 2020 UTC (4 years, 5 months ago) by rin
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -3
lines
Regardless of __HAVE_FENV, include <fenv.h>, which itself defines __HAVE_FENV.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue May 5 00:50:39 2020 UTC (4 years, 7 months ago) by kamil
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +13 -1
lines
Move threads tests out of t_ptrace_wait.c to t_ptrace_threads_wait.h
The same tests are now included with the preprocessor in t_ptrace_wait.c.
No functional change intended.
Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:27 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.1: +67 -3
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Mar 8 15:07:44 2020 UTC (4 years, 9 months ago) by martin
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -1
lines
Only inlcude fenv.h if __HAVE_FENV
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Mar 7 19:47:44 2020 UTC (4 years, 9 months ago) by kamil
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2
lines
Fix typo
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Mar 7 14:53:14 2020 UTC (4 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +9 -3
lines
Try to fix the build. This is why all those inlines should really be in a
separate file as regular function. The code is too large and hard to manage
this way, and only increases in complexity as time goes by.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Mar 6 17:03:35 2020 UTC (4 years, 9 months ago) by kamil
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +28 -1
lines
Add await_collected()
This functions waits for collecting a process.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Mar 3 17:09:22 2020 UTC (4 years, 9 months ago) by kamil
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2
lines
Mark find_event_count() with __used
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Feb 22 19:44:07 2020 UTC (4 years, 9 months ago) by kamil
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -11
lines
Disable t_ptrace_wait* tests for MKSANITIZER/MKLIBCSANITIZER
A subset of tests is not compatible with the sanitizers.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Feb 13 13:38:44 2020 UTC (4 years, 9 months ago) by kamil
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -1
lines
Disable UBSan warnings for trigger_segv()
Dereferencing the NULL pointer is on purpose.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Feb 13 13:34:47 2020 UTC (4 years, 9 months ago) by kamil
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -1
lines
Disable UBSan reports in trigger_fpe()
Division by 0 is on purpose.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Feb 11 00:41:37 2020 UTC (4 years, 10 months ago) by kamil
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -1
lines
Rewrite the t_ptrace_wait resume1 test
Switch to pthread functions.
Rename to 'resume'.
Synchronize the threads with pthread barriers.
Avoid race in the test.
Test passes correctly.
Fixes PR bin/54893 by Andreas Gustafsson
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Nov 12 18:18:04 2019 UTC (5 years ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +25 -1
lines
Rework thread_concurrent_signals and trace_thread_lwpcreate_and_exit
Change the code to remove the LWP id assumptions that broke after
src/sys/kern/kern_lwp.c r. 1.206.
Original code by <mgorny>, tested and tweaked by myself.
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:05 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +89 -2
lines
Sync with HEAD
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat May 25 03:22:53 2019 UTC (5 years, 6 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +21 -1
lines
Add get_user_va0_disable() in t_ptrace_wait.h
Add a utility function to check vm.user_va0_disable.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Apr 25 19:15:23 2019 UTC (5 years, 7 months ago) by kamil
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +20 -1
lines
Introduce check for the support of FPU exceptions
If FPU exceptions are unsupported, skip the SIGFPE crash tests.
Reuse code from tests/kernel/h_segv.c
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Apr 11 20:20:54 2019 UTC (5 years, 8 months ago) by kamil
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +11 -1
lines
Add clone_func() in t_ptrace_wait.h
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Feb 10 02:13:45 2019 UTC (5 years, 10 months ago) by kamil
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3
lines
Link t_ptrace_wait* tests with -pthread
While there, bump (c) for ATF ptrace(2) tests.
Add __used in infinite_thread() for consistency with other functions in
the file.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Feb 9 23:10:42 2019 UTC (5 years, 10 months ago) by kamil
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +11 -1
lines
Add infinite_thread() for ptrace(2) ATF tests
infinite_thread() is designed to be spawned as a pthread(3) function.
It will be used soon in new tests.
Revision 1.1.14.5: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:48 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.1.14.4: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.14.4: +29 -1
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Aug 13 21:49:37 2018 UTC (6 years, 3 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +29 -1
lines
Add await_stopped() in t_ptrace_wait.h
This is used in tests where a process awaits for a stopped process.
Revision 1.1.14.4: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:26:09 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.14.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.14.3: +85 -2
lines
Sync with HEAD
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed May 30 17:48:13 2018 UTC (6 years, 6 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728,
pgoyette-compat-0625
Branch point for: phil-wifi
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -2
lines
Add a comment for the workaround in trigger_bus()
Explain PROT_READ|PROT_WRITE.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed May 30 17:31:34 2018 UTC (6 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2
lines
Make the trigger_bus() test compatible with more CPUs (at least ALPHA)
If we write a byte character into a pointer, a compiler can emit a
read-modify-write operation, especially when a CPU cannot access directly
a character wide address.
In this scenario calling mmap(2) with PROT_WRITE, without PROT_READ will
emit unexpected trap.
There are two possible workarounds for this issue:
- write register wide memory without rmw sequence,
- mark the region with additional protection PROT_READ
Both work for NetBSD/alpha.
Go for the latter as perhaps more safe for dump compilers emitting rmw
sequences.
Investigated by <martin>
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun May 27 17:16:39 2018 UTC (6 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +5 -8
lines
Try to fool $CC harder in ATF ptrace(2) tests in trigger_fpe()
A function that returns a value that is not used, can be optimized out by
a compiler. Try to fool the compiler with calling libc functions that shall
trigger a division by zero crash.
Sponsored by <The NetBSD Foundation>
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat May 26 15:15:17 2018 UTC (6 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +18 -1
lines
Introduce can_we_write_to_text() to ATF ptrace(2) tests
The purpose of this function is to detect whether a tracer can write to the
.text section of its tracee.
Sponsored by <The NetBSD Foundation>
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu May 24 08:28:40 2018 UTC (6 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3
lines
Try to fix 32-bit build
Cast pointer to uintptr_t rather than uintmax_t.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed May 23 13:18:09 2018 UTC (6 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +66 -2
lines
Add new auxiliary functions in ATF ptrace(2) tests
Introduce:
- trigger_trap()
- trigger_segv()
- trigger_ill()
- trigger_fpe()
- trigger_bus()
These functions generate appropriate signals caused by crashes.
A debugger is required to collect the crashes regardless of signal masking,
catching or ignoring rules.
While there, append __used argument to can_we_set_dbregs().
Sponsored by <The NetBSD Foundation>
Revision 1.1.14.3: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:17 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.14.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.14.2: +96 -1
lines
Sync with HEAD
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat May 19 05:04:09 2018 UTC (6 years, 6 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-compat-0521
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +67 -1
lines
Add new auxiliary functions in t_ptrace_wait.h
New functions:
- FORKEE_ASSERT_NEQ()
- await_stopped_child()
Both will be used soon in a new ATF ptrace(2) test.
Sponsored by <The NetBSD Foundation>
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun May 13 23:01:25 2018 UTC (6 years, 6 months ago) by kamil
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +30 -1
lines
Refactor code in ATF ptrace(2) tests
Move the can_we_set_dbregs() auxiliary function from t_ptrace_x86_wait.h
to a common file t_ptrace_wait.h. This allows using this function for
checking whether the DBREGS set operations in ptrace(2) are accessible for
a user.
Sponsored by <The NetBSD Foundation>
Revision 1.1.14.2: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:25 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.14.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.14.1: +3 -3
lines
Synch with HEAD
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Apr 28 17:56:55 2018 UTC (6 years, 7 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-compat-0502
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3
lines
Handle core dumps in ATF ptrace(2) tests easier
Cast WCOREDUMP() to either 1 or 0.
It could be changed to a boolean type, but it's already good enough.
Sponsored by <The NetBSD Foundation>
Revision 1.1.8.1: download - view: text, markup, annotated - select for diffs
Thu Apr 12 13:02:21 2018 UTC (6 years, 8 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +12 -3
lines
Pull up following revision(s) (requested by kamil in ticket #711):
tests/lib/libc/sys/t_ptrace_wait.c: revision 1.24-1.31
tests/lib/libc/sys/t_ptrace_wait.h: revision 1.2
tests/lib/libc/sys/t_ptrace_x86_wait.h: revision 1.4,1.5
tests/lib/libc/sys/msg.h: revision 1.2
Correct all ATF failures in t_ptrace_x86_wait.h (debug registers)
This code after refactoring stopped calling functions that were designed
to trigger expected behavior and thus, tests were breaking.
Sponsored by <The NetBSD Foundation>
ATF: Correct a race bug in attach2 (t_ptrace_wait*)
At the end of the test we resume a tracer and expect to observe it to
collect the debuggee. We cannot from a parent point of view wait for
collecting it with WNOHANG without a race.
Remove the WNOHANG option from wait*(2) call. This corrects one type of
race.
This test is still racy for some other and unknown reason and this is bei=
ng
investigated.
Sponsored by <The NetBSD Foundation>
ATF: Reenable attach2 in t_ptrace_wait*
The primary race specific to this test has been fixed in previous commit
(wrong WNOHANG).
This test is still racy and breaks like once every 30,000 execution.
This is down like from once from every 100th execution in the past.
The remaning race is not specific to attach2 and I can reproduce it with
at least attach1. It still looks like being specific to NetBSD and it's
not reproducible on Linux and FreeBSD. Perhaps a bug with pipe(2)/write(2=
)/
read(2) or close to these features.
Sponsored by <The NetBSD Foundation>
Add a new function in ATF t_ptrace_wait*: await_zombie_raw()
Add await_zombie_raw() that is the same as await_zombie(), whith an
addition of additional "useconds_t ms" parameter indicating delays betwee=
n
new polling for a zombie process.
This new function will be used for testing a race condition that has been=
observed occassionally crashing a test case -- returning duplicate entrie=
s
for KERN_PROC_PID.
Sponsored by <The NetBSD Foundation>
ATF t_ptrace_wait*: Disable debug messages in msg.h
msg.h is a dummy IPC interface.
Disable additional debugging logging here, especially wanted in race*
tests.
Sponsored by <The NetBSD Foundation>
ATF: Add new test race1 in t_ptrace_wait*
Reuse the attach1's test body for race1.
Add a new test race1:
Assert that await_zombie() in attach1 always finds a single
process and no other error is reported
race1 requires HAVE_PID in wait(2)-like function.
This test is executed in a loop for 5 seconds (16k iterations on Intel i7=
).
A buggy kernel was asserting an error within this timeframe almost always=
=2E
The bug in the kernel is now gone and this test is expected to pass
correctly.
Sponsored by <The NetBSD Foundation>
Add check in ATF tests for security.models.extensions.user_set_dbregs
Introduce a new function can_we_set_dbregs() in the ATF ptrace(2) tests.
It uses lazy-bool evaluation whether a process can call PT_SETDBREGS.
In case of not being able to do so, print a message and mark a test
as skipped:
Either run this test as root or set sysctl(3)
security.models.extensions.user_set_dbregs to 1
No functional change intended to the code flow of the existing tested
scenarios.
Sponsored by <The NetBSD Foundation>
Improve documentation of the ATF test t_ptrace_wait*: traceme2
Set the description to:
Verify that a signal emitted by a tracer to a child is caught by
a signal handler.
Sponsored by <The NetBSD Foundation>
Merge code in tests: fork1 and vfork1 (ATF t_ptrace_wait*)
Marge bodies of two tests into the same function.
Add few checks for regular fork or not (vfork).
Sponsored by <The NetBSD Foundation>
ATF: ptrace: Merge code in fork2 and vfork2 tests with (v)fork1 ones
Reduce code duplication, use the same function body with conditional
switches.
Sponsored by <The NetBSD Foundation>
ATF t_ptrace_wait* refactoring: vforkdone1 and vforkdone2
Merge vforkdone1 and vforkdone2 into other fork tests and reuse the same
function body fork_test().
There is an implicit enhancement in vforkdone2 that it was skipping
PTRACE_VFORK check. This test is now marked as expected failure.
PR kern/51630
Sponsored by <The NetBSD Foundation>
Cover more fork/vfork/vforkdone scenarios in ATF ptrace(2) tests
Use a shared common body for all the tests: fork1..fork8, vfork1..vfork8.=
Merge vforkdone1 and vforkdone2 into vfork* tests.
All the (v?)fork[1-8] tests cover:
- calling either fork(2) or vfork(2)
- tracking either enabled or disabled FORK, VFORK or VFORK_DONE
All the PTRACE_VFORK tests are marked as expected failure.
Sponsored by <The NetBSD Foundation>
Revision 1.1.14.1: download - view: text, markup, annotated - select for diffs
Thu Mar 15 09:12:07 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +12 -3
lines
Synch with HEAD
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Mar 13 13:34:40 2018 UTC (6 years, 9 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +12 -3
lines
Add a new function in ATF t_ptrace_wait*: await_zombie_raw()
Add await_zombie_raw() that is the same as await_zombie(), whith an
addition of additional "useconds_t ms" parameter indicating delays between
new polling for a zombie process.
This new function will be used for testing a race condition that has been
observed occassionally crashing a test case -- returning duplicate entries
for KERN_PROC_PID.
Sponsored by <The NetBSD Foundation>
Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:33 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.1: +431 -0
lines
Sync with HEAD
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:11 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +431 -0
lines
Sync with HEAD
Revision 1.1.4.1
Sun Apr 2 21:44:00 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
FILE REMOVED
Changes since revision 1.1: +0 -431
lines
file t_ptrace_wait.h was added on branch pgoyette-localcount on 2017-04-26 02:53:33 +0000
Revision 1.1.2.1
Sun Apr 2 21:44:00 2017 UTC (7 years, 8 months ago) by bouyer
Branches: bouyer-socketcan
FILE REMOVED
Changes since revision 1.1: +0 -431
lines
file t_ptrace_wait.h was added on branch bouyer-socketcan on 2017-04-21 16:54:11 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Apr 2 21:44:00 2017 UTC (7 years, 8 months ago) by kamil
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-compat-base,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
bouyer-socketcan-base1
Branch point for: pgoyette-localcount,
pgoyette-compat,
netbsd-8,
bouyer-socketcan
Import ptrace(2) tests into appropriate directory tests/lib/libc/sys/
This is the correct directory documented in tests/README for such tests.
Discussed with <martin>
Sponsored by <The NetBSD Foundation>
CVSweb <webmaster@jp.NetBSD.org>