Brad King
51c82c3a66
Merge branch 'upstream-kwsys' into update-kwsys
2014-08-11 09:30:22 -04:00
Brad King
6f3e094e9f
Merge branch 'upstream-kwsys' into update-kwsys
2014-07-18 10:15:23 -04:00
Brad King
588d705cb1
Merge branch 'upstream-kwsys' into update-kwsys
2013-02-01 09:28:50 -05:00
Brad King
6f6afbd69f
Merge branch 'upstream-kwsys' into update-kwsys
2013-01-08 08:42:58 -05:00
Brad King
e33fa5b678
Merge branch 'upstream-kwsys' into update-kwsys
2012-12-19 08:09:36 -05:00
Brad King
70154efef8
KWSys: Avoid undefined behavior in Process crash tests
...
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.
2010-07-09 10:40:06 -04:00
Brad King
c3389d4ce2
KWSys: Avoid Clang optimizer bug in testProcess-[45]
...
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.
2010-07-02 14:00:04 -04:00
David Cole
a9dcc7fd47
Fix warnings in CMake source code. Suppress warnings in Lexer and Parser files that are 'too hard' to fix.
2009-09-30 11:41:34 -04:00
Brad King
de955e4b6d
Convert KWSys to OSI-approved BSD License
...
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.
2009-09-28 11:37:35 -04:00
Brad King
86b103f271
ENH: Extend kwsys.testProcess-4 timeout
...
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.
2009-01-09 11:44:46 -05:00
Bill Hoffman
67dc176ffa
ENH: a few more haiku fixes, stop the debugger from coming up for tests
2008-09-22 14:05:13 -04:00
Bill Hoffman
64fc597de2
ENH: add initial support for HAIKU OS from bug# 7425
2008-09-15 17:53:28 -04:00
Brad King
de8ffcaef4
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).
2006-12-04 14:42:47 -05:00
Brad King
ab61137eb1
COMP: Fix and/or disable warnings for Borland 5.6 build.
2006-08-01 11:38:42 -04:00
Brad King
da285df242
ENH: Added test 8 to test grandchildren running after children exit.
2006-05-21 10:28:14 -04:00
Brad King
a155eacec3
ENH: Added a way to quickly enable manual testing of grandchild killing.
2006-03-08 11:39:34 -05:00
Brad King
bdbb7f84bc
ENH: Added special test 0 to just run a given command line.
2006-01-05 15:49:34 -05:00
Brad King
931233ee7b
COMP: Fixed uninitialized variable.
2005-07-08 09:05:11 -04:00
Brad King
3f14dae716
ENH: Extended test 0 to run the executable twice using the same process object. This tests the reusability of the objects.
2005-07-07 09:06:56 -04:00
Brad King
05f5f379a7
BUG: Use sleep(1) instead of usleep(1000000) because some UNIX systems specify that the argument to usleep must be less than 1000000.
2005-06-21 10:33:57 -04:00
Brad King
28ffc134a0
ENH: Added test 7 to expose problems with polling by WaitForData.
2005-06-17 13:59:22 -04:00
Brad King
26f82b064c
ENH: Removing previous debug code.
2005-05-16 13:42:23 -04:00
Brad King
b45071cc60
ENH: Adding debugging code for freebsd.
2005-05-13 14:44:20 -04:00
Brad King
858a5131dc
ENH: Removing QNX hack for test 6 now that the problem has been fixed.
2005-05-10 16:41:20 -04:00
Brad King
946253c99d
ENH: Disabling test 6 on QNX until process killing can be resolved. It will just fail always for now.
2005-05-05 09:45:54 -04:00
Brad King
7dcb42de21
ENH: Adding test of running executable with forward slashes on windows.
2005-05-03 10:02:28 -04:00
Brad King
91c254d708
BUG: Extending all timeouts to help out slower machines.
2005-04-28 09:21:03 -04:00
Brad King
cc2cd3bc41
BUG: Extending timeout of test 6 from 0.1 seconds to 3 seconds. This should avoid missed signals and intermittent failures.
2005-04-27 10:01:43 -04:00
Brad King
b1e1d9c0fb
BUG: Drastically extending test5's timeouts to get it to pass when running on a heavily-loaded machine.
2005-04-22 09:44:59 -04:00
Brad King
104b910aac
BUG: Adjusting timeouts for tests 4 and 5 to avoid early killing.
2005-04-20 08:53:45 -04:00
Brad King
f362d6e2ef
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.
2005-04-19 10:52:32 -04:00
Brad King
79c0487de9
COMP: Removing return value from test6. It is an infinite loop, so the return causes warnings. It will never return anyway.
2005-04-13 16:55:47 -04:00
Brad King
caf54b2093
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.
2005-04-13 16:46:09 -04:00
Brad King
3a7920d461
BUG: Avoid error diagnostic popups on windows for test that crashes on purpose.
2005-04-13 15:57:22 -04:00
Andy Cedilnik
4a390c174c
ENH: Do kwsys testing as part of cmake testing, command line arguments are not experimental and add simple test for systemtools
2005-04-13 13:57:24 -04:00
Brad King
7350756728
ERR: Added missing include of string.h
2004-10-01 11:36:38 -04:00
Brad King
f2e46cf172
ENH: Added optional display of output for tests. Avoid printing alot of output for test 6.
2004-09-30 17:42:42 -04:00
Brad King
b993cd7fba
BUG: Fixed off-by-one error in test6 function.
2004-07-13 17:33:23 -04:00
Brad King
0437b776b6
ENH: Added test for runaway output.
2004-07-13 17:27:58 -04:00
Brad King
e27ad7eb97
ENH: Added exception string to abnormal termination report.
2004-01-28 10:59:22 -05:00
Brad King
9878c9ea34
ERR: Fixed unused argument warning.
2004-01-19 09:30:44 -05:00
Brad King
740505bb63
ENH: Added a recursive process execution test.
2004-01-17 12:46:56 -05:00
Brad King
ce8a34907a
ENH: Updated copyright.
2003-12-15 16:30:46 -05:00
Brad King
ed853b5d70
ENH: Removed pipe selection argument from WaitForData method in kwsysProcess. This greatly simplifies its use.
2003-12-05 11:53:17 -05:00
Brad King
a778cd0f3d
ERR: Fixed use of non-constant initializer.
2003-06-25 09:32:38 -04:00
Brad King
322f906638
ENH: Added test for Process implementation.
2003-06-18 17:27:36 -04:00