From: Limin Wang <lance.lmw...@gmail.com>

One test case is different, before the patchset, it's:
"path" + "/" = "path/"
After applied the patchset, it's:
"path" + "/" = "path"

Signed-off-by: Limin Wang <lance.lmw...@gmail.com>
---
 libavutil/tests/avstring.c | 3 +++
 tests/ref/fate/avstring    | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/libavutil/tests/avstring.c b/libavutil/tests/avstring.c
index 887bd25..a94f7a5 100644
--- a/libavutil/tests/avstring.c
+++ b/libavutil/tests/avstring.c
@@ -76,6 +76,9 @@ int main(void)
     TEST_APPEND_PATH_COMPONENT(NULL, NULL, "(null)")
     TEST_APPEND_PATH_COMPONENT("path", NULL, "path");
     TEST_APPEND_PATH_COMPONENT(NULL, "comp", "comp");
+    TEST_APPEND_PATH_COMPONENT("path", "", "path");
+    TEST_APPEND_PATH_COMPONENT("", "comp", "comp");
+    TEST_APPEND_PATH_COMPONENT("path", "/", "path");
     TEST_APPEND_PATH_COMPONENT("path", "comp", "path/comp");
     TEST_APPEND_PATH_COMPONENT("path/", "comp", "path/comp");
     TEST_APPEND_PATH_COMPONENT("path", "/comp", "path/comp");
diff --git a/tests/ref/fate/avstring b/tests/ref/fate/avstring
index 1ca9be5..92ec918 100644
--- a/tests/ref/fate/avstring
+++ b/tests/ref/fate/avstring
@@ -29,6 +29,9 @@ Testing av_append_path_component()
 (null) = (null)
 path = path
 comp = comp
+path = path
+comp = comp
+path/ = path
 path/comp = path/comp
 path/comp = path/comp
 path/comp = path/comp
-- 
2.9.5

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to