1. 13 Apr, 2020 1 commit
  2. 09 Apr, 2020 1 commit
  3. 17 Sep, 2019 1 commit
  4. 31 May, 2018 1 commit
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format-6.0 · 828b6837
      Kitware Robot authored and Brad King's avatar Brad King committed
      Run the `clang-format.bash` script to update all our C and C++ code to a
      new style defined by `.clang-format`.  Use `clang-format` version 6.0.
      
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
      828b6837
  5. 31 Oct, 2017 1 commit
    • Brad King's avatar
      Process: Fix tests under ubsan · 90886a99
      Brad King authored
      UBsan causes our test crash to abort instead.  Switch the test to
      explicitly abort when sanitizers are in use.
      90886a99
  6. 06 Oct, 2017 1 commit
  7. 04 Nov, 2016 3 commits
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · 6c973b46
      Kitware Robot authored and Brad King's avatar Brad King committed
      Run the `clang-format.bash` script to update all our C and C++ code to a new
      style defined by `.clang-format`.  Use `clang-format` version 3.8.
      
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
      
      Change-Id: Ie3aedc03bfe5c3999d4a077fafb8c6f3bbffc5c5
      6c973b46
    • Brad King's avatar
      Simplify KWSys per-source license notices · c41c1bc4
      Brad King authored
      Per-source copyright/license notice headers that spell out copyright holder
      names and years are hard to maintain and often out-of-date or plain wrong.
      Precise contributor information is already maintained automatically by the
      version control tool.  Ultimately it is the receiver of a file who is
      responsible for determining its licensing status, and per-source notices are
      merely a convenience.  Therefore it is simpler and more accurate for
      each source to have a generic notice of the license name and references to
      more detailed information on copyright holders and full license terms.
      
      Our `Copyright.txt` file now contains a list of Contributors whose names
      appeared source-level copyright notices.  It also references version control
      history for more precise information.  Therefore we no longer need to spell
      out the list of Contributors in each source file notice.
      
      Replace KWSys per-source copyright/license notice headers with a short
      description of the license and links to `Copyright.txt` and online
      information available from "https://cmake.org/licensing#kwsys".
      
      Run the `filter-notices.bash` script to perform the replacements mechanically.
      Manually fix up the shebang line in one file.
      
      Change-Id: I8497f7c868664dcf54a8608ab302ad93c860b334
      c41c1bc4
    • Brad King's avatar
      Sort includes to stabilize include order w.r.t. clang-format · 15e90a3c
      Brad King authored
      The clang-format tool sorts `#include` lines within contiguous blocks.
      Separate blocks with blank lines and sort the include lines within them
      so that clang-format does not re-order anything.
      
      Change-Id: I96d6828f470b9a234464972172d46afab322487c
      15e90a3c
  8. 03 Aug, 2015 1 commit
  9. 23 Jul, 2015 1 commit
    • Brad King's avatar
      Process: Fix conversion warning in testProcess.c · 83b4a6b8
      Brad King authored
      Store and pass the interruptDelay parameter as 'unsigned int' so
      it does not have to be converted to pass to testProcess_sleep.
      Otherwise some compilers warn about the signed->unsigned conversion.
      
      Change-Id: I1edf6dbc852231834a5de82c5b14f84ac8018c1f
      83b4a6b8
  10. 15 Jul, 2015 2 commits
    • James Johnston's avatar
      Process: Added test cases for testing Ctrl+C and process groups. · 906c2cae
      James Johnston authored and Brad King's avatar Brad King committed
      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
      906c2cae
    • James Johnston's avatar
      Process: Refactor sleeping code in testProcess.c. · b1c44c58
      James Johnston authored and Brad King's avatar Brad King committed
      Code for delaying/sleeping has been unified into one location.
      
      Change-Id: I234f3e1be667539e8126f7ed24aec95fe14284b3
      b1c44c58
  11. 07 Aug, 2014 1 commit
    • Brad King's avatar
      Add assert() to quiet Clang scan-build warnings · 4d526097
      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
      4d526097
  12. 18 Jul, 2014 1 commit
  13. 31 Jan, 2013 1 commit
  14. 06 Jan, 2013 1 commit
  15. 29 Nov, 2012 1 commit
    • Sean McBride's avatar
      Process: Dereference NULL++ instead of NULL to force crash · 5e17bfde
      Sean McBride authored and Brad King's avatar Brad King committed
      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
      5e17bfde
  16. 09 Jul, 2010 1 commit
    • Brad King's avatar
      KWSys: Avoid undefined behavior in Process crash tests · fe4ee7da
      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.
      fe4ee7da
  17. 02 Jul, 2010 1 commit
    • Brad King's avatar
      KWSys: Avoid Clang optimizer bug in testProcess-[45] · 01bb687d
      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.
      01bb687d
  18. 30 Sep, 2009 1 commit
  19. 28 Sep, 2009 1 commit
    • Brad King's avatar
      Convert KWSys to OSI-approved BSD License · 62db264e
      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.
      62db264e
  20. 09 Jan, 2009 1 commit
    • Brad King's avatar
      ENH: Extend kwsys.testProcess-4 timeout · 0881cbae
      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.
      0881cbae
  21. 22 Sep, 2008 1 commit
  22. 15 Sep, 2008 1 commit
  23. 04 Dec, 2006 1 commit
  24. 01 Aug, 2006 1 commit
  25. 21 May, 2006 1 commit
  26. 08 Mar, 2006 1 commit
  27. 05 Jan, 2006 1 commit
  28. 08 Jul, 2005 1 commit
  29. 07 Jul, 2005 1 commit
  30. 21 Jun, 2005 1 commit
  31. 17 Jun, 2005 1 commit
  32. 16 May, 2005 1 commit
  33. 13 May, 2005 1 commit
  34. 10 May, 2005 1 commit
  35. 05 May, 2005 1 commit
  36. 03 May, 2005 1 commit
  37. 28 Apr, 2005 1 commit