From mboxrd@z Thu Jan 1 00:00:00 1970 From: raphael.beamonte@gmail.com (=?UTF-8?q?Rapha=C3=ABl=20Beamonte?=) Date: Wed, 13 Nov 2013 00:34:34 -0500 Subject: [lttng-dev] [lttng-tools PATCH 0/4] Update to utils_expand_path as realpath(3) for non-existing directories In-Reply-To: <20131112195134.GB12183@thessa> References: <20131112195134.GB12183@thessa> Message-ID: <1384320878-28808-1-git-send-email-raphael.beamonte@gmail.com> David, Please find here an updated series of patches following your previous comments. These patches introduce updated versions of the utils_resolve_relative and utils_expand_path functions, as well as unit tests to verify their behavior. Thanks, Rapha?l Rapha?l Beamonte (4): Introduce a new utils_resolve_relative function Tests: Add test_utils_resolve_relative to unit tests Correct the behavior of the utils_expand_path function Tests: Add test_utils_expand_path to unit tests .gitignore | 2 + src/common/utils.c | 154 +++++++++++++++++++++++---- src/common/utils.h | 1 + tests/unit/Makefile.am | 20 +++- tests/unit/test_utils_expand_path.c | 170 ++++++++++++++++++++++++++++++ tests/unit/test_utils_resolve_relative.c | 98 +++++++++++++++++ tests/unit_tests | 2 + 7 files changed, 421 insertions(+), 26 deletions(-) create mode 100644 tests/unit/test_utils_expand_path.c create mode 100644 tests/unit/test_utils_resolve_relative.c -- 1.7.10.4