[PATCH v2 0/8] Fix some bugs in abspath.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Second version of patches, incorporating gratefully received advice
from Hannes:

* Moved existing tests of real_path() from t0000 to t0060, and add new
  tests to t0060 instead of t0000.

* Adjusted the regexp used to construct a top-level directory that is
  needed for tests.

* Skip some tests when the POSIX prerequisite is not satisfied.

Michael Haggerty (8):
  t0060: move tests of real_path() from t0000 to here
  t0060: verify that absolute_path() fails if passed the empty string
  absolute_path(): reject the empty string
  t0060: verify that real_path() fails if passed the empty string
  real_path(): reject the empty string
  t0060: verify that real_path() works correctly with absolute paths
  real_path(): properly handle nonexistent top-level paths
  t0060: verify that real_path() removes extra slashes

 abspath.c             |  9 +++++++--
 t/t0000-basic.sh      | 18 -----------------
 t/t0060-path-utils.sh | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 62 insertions(+), 20 deletions(-)

-- 
1.7.11.3

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]