- Jul 15, 2015
-
-
Two new tests were added to testProcess: * Test 9 is constructed of the root test process, a child process, and a grandchild process. The grandchild ignores all Ctrl+C signals and then sleeps. The child runs the grandchild normally. The root process runs the child in a new process group, sends it a Ctrl+C signal, and then lets the process expire to prove that the child was blocked waiting for the uninterruptable grandchild to die. * Test 10 is constructed of the root test process, a child process, and a grandchild process. The grandchild sleeps and processes signals normally. The child runs the grandchild in a new process group. The root process runs the child in a new process group as well, sends it a Ctrl+C, and then verifies that: (1) the child does indeed terminate with an interrupt signal, (2) the child did not expire, proving that it retransmitted the signal to the sleeping grandchild before waiting for the grandchild to terminate. Change-Id: Iba5bee546a82eb61a41d4194341e9382a00279d4
-
Code for delaying/sleeping has been unified into one location. Change-Id: I234f3e1be667539e8126f7ed24aec95fe14284b3
-
- Aug 07, 2014
-
-
Brad King authored
In ProcessUNIX.c, testProcess.c, and testCommandLineArguments1.cxx, add assert() calls to tell Clang scan-build that we do not expect certain pointers to be NULL. Change-Id: I4a2b035cf58198606b4698c9d0e2048a66f15fd0
-
- Jul 18, 2014
-
-
Change-Id: I23a27b25bf7a2f8f8785c575e1e595f785f9db98
-
- Jan 31, 2013
-
-
Mostly add 'static' to private functions/globals. Change-Id: Ic7fa75bcc0f245e7b4f8d554db4f58ac0c585e2a
-
- Jan 06, 2013
-
-
Rolf Eike Beer authored
Change-Id: I881521d84a31b6b1c68930f94acbcea88b5c1dea
-
- Nov 29, 2012
-
-
Some compilers, notably Clang, will warn at compile time (or runtime with debug flags) if they detect a null dereference. Try to outsmart them by dereferencing an address a little larger than NULL. Change-Id: I53c6512f814ad3e8977c076904f0415e8aaaaea5
-
- Jul 09, 2010
-
-
Brad King authored
Clang is smart enough to recognize that "*(int*)0=0" invokes undefined behavior, warns, and produces an "undefined instruction". The message in commit "Avoid Clang optimizer bug in testProcess-[45]" (2010-07-02) is incorrect; this is not a Clang bug. It really is undefined behavior. Use "*(int*)1=0" to produce a crash instead.
-
- Jul 02, 2010
-
-
Brad King authored
Clang's optimizer, as of clang version 2.8 (trunk 107463), produces the undefined instruction 'ud2' for the code "*(int*)0=0" on OS X x86_64. It causes our crash tests to fail because the child process exits with an invalid instruction instead of a segmentation fault. Work around the bug by using "*(int*)1=0" in this case.
-
- Sep 30, 2009
-
-
David Cole authored
Fix warnings in CMake source code. Suppress warnings in Lexer and Parser files that are 'too hard' to fix.
-
- Sep 28, 2009
-
-
Brad King authored
This converts the KWSys license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the KWSys copyright to cover the full development time range.
-
- Jan 09, 2009
-
-
Brad King authored
The test is supposed to terminate quickly when its child crashes, but that seems to take over 10s on busy systems. This extends the test's timeout to 30s to help it pass when running on a busy system.
-
- Sep 22, 2008
-
-
Bill Hoffman authored
-
- Sep 15, 2008
-
-
Bill Hoffman authored
-
- Dec 04, 2006
-
-
Brad King authored
ENH: Changes based on patch from Ryan C. Gordon to enable process execution on BeOS. There seems to be no way to implement it without polling (or threads).
-
- Aug 01, 2006
-
-
Brad King authored
-
- May 21, 2006
-
-
Brad King authored
-
- Mar 08, 2006
-
-
Brad King authored
-
- Jan 05, 2006
-
-
Brad King authored
-
- Jul 08, 2005
-
-
Brad King authored
-
- Jul 07, 2005
-
-
Brad King authored
ENH: Extended test 0 to run the executable twice using the same process object. This tests the reusability of the objects.
-
- Jun 21, 2005
-
-
Brad King authored
BUG: Use sleep(1) instead of usleep(1000000) because some UNIX systems specify that the argument to usleep must be less than 1000000.
-
- Jun 17, 2005
-
-
Brad King authored
-
- May 16, 2005
-
-
Brad King authored
-
- May 13, 2005
-
-
Brad King authored
-
- May 10, 2005
-
-
Brad King authored
-
- May 05, 2005
-
-
Brad King authored
ENH: Disabling test 6 on QNX until process killing can be resolved. It will just fail always for now.
-
- May 03, 2005
-
-
Brad King authored
-
- Apr 28, 2005
-
-
Brad King authored
-
- Apr 27, 2005
-
-
Brad King authored
BUG: Extending timeout of test 6 from 0.1 seconds to 3 seconds. This should avoid missed signals and intermittent failures.
-
- Apr 22, 2005
-
-
Brad King authored
BUG: Drastically extending test5's timeouts to get it to pass when running on a heavily-loaded machine.
-
- Apr 20, 2005
-
-
Brad King authored
-
- Apr 19, 2005
-
-
Brad King authored
BUG: Expanded difference in timeouts between tests 4 and 5 so that 5 does not timeout while waiting for 4 to timeout. This should fix the intermittent failure of test 5 on cygwin. ENH: When a mismatch is reported it now reports what it was as well as what it should have been.
-
- Apr 13, 2005
-
-
Brad King authored
COMP: Removing return value from test6. It is an infinite loop, so the return causes warnings. It will never return anyway.
-
Brad King authored
COMP: Adding work-around for CMake dependency scanning limitation. Any configured header included by KWSYS_HEADER() in a .c or .cxx file in kwsys itself must use this hack to get dependencies.
-
Brad King authored
-
Andy Cedilnik authored
ENH: Do kwsys testing as part of cmake testing, command line arguments are not experimental and add simple test for systemtools
-
- Oct 01, 2004
-
-
Brad King authored
-
- Sep 30, 2004
-
-
Brad King authored
-
- Jul 13, 2004
-
-
Brad King authored
-