tests/test-remove-new.t
author Jim Hague <jim.hague@acm.org>
Fri, 03 Feb 2012 23:27:17 +0000
branchstable
changeset 16071 8134ec8627e7
parent 12327 92e30e135581
permissions -rw-r--r--
bdiff: fix malloc(0) issue in fixws() If fixws() is called on a zero-length string, malloc(0) is called and expected to return a pointer. Which it does on e.g. Linux. AIX returns NULL, which it is also legal, but the malloc() is then assumed to have failed. So ensure a valid pointer is always returned.

test that 'hg commit' does not crash if the user removes a newly added file

  $ hg init
  $ echo This is file a1 > a
  $ hg add a
  $ hg commit -m "commit #0"
  $ touch b
  $ hg add b
  $ rm b
  $ hg commit -A -m"comment #1"
  removing b
  nothing changed
  [1]