Bug 1964 - test kernel behavior across an exec call
Summary: test kernel behavior across an exec call
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Stan Cox
URL:
Keywords:
Depends on:
Blocks: 1586
  Show dependency treegraph
 
Reported: 2005-12-01 17:14 UTC by Andrew Cagney
Modified: 2005-12-21 16:28 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2005-12-01 17:14:04 UTC
There are at least three senarios:

- a single threaded process does an exec

- a multi-threaded process has it's main thread do an exec

- a multi-threaded process has a non-main thread do an exec

need to add something to frysk-imports/tests/* to confirm the behavior of each
of the kernel in each of these cases.

Something really simple like, set up the senario, do the exec, passing the new
program the expected pid (obtained from gettid()), and then have that program
verify that getpid() matches.
Comment 1 Stan Cox 2005-12-21 15:24:04 UTC
Added:
frysk-imports/tests/process/multi_child_exec.c
frysk-imports/tests/process/multi_child_parent_exec.c
frysk-imports/tests/process/multi_parent_exec.c
frysk-imports/tests/process/single_exec.c
Comment 2 Stan Cox 2005-12-21 16:28:24 UTC
Tests now run in frysk-imports test harness