[aseprite] 01/02: Import fix_split_filename_tests.patch from upstream.
Tobias Hansen
thansen at moszumanska.debian.org
Wed Sep 9 22:48:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 51d484df1f579a5ebf75d56a60d5d570b4ae09b3
Author: Tobias Hansen <tobias.han at gmx.de>
Date: Wed Sep 9 23:32:42 2015 +0200
Import fix_split_filename_tests.patch from upstream.
---
debian/patches/fix_split_filename_tests.patch | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 28 insertions(+)
diff --git a/debian/patches/fix_split_filename_tests.patch b/debian/patches/fix_split_filename_tests.patch
new file mode 100644
index 0000000..eaf3708
--- /dev/null
+++ b/debian/patches/fix_split_filename_tests.patch
@@ -0,0 +1,27 @@
+From f691b9131014a72393a4381bd4bfa3805574be71 Mon Sep 17 00:00:00 2001
+From: David Capello <davidcapello at gmail.com>
+Date: Tue, 1 Sep 2015 13:05:41 -0300
+Subject: [PATCH] Fix split_filename_tests
+
+---
+ src/app/file/split_filename_tests.cpp | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/app/file/split_filename_tests.cpp b/src/app/file/split_filename_tests.cpp
+index 4d3a32c..8087873 100644
+--- a/src/app/file/split_filename_tests.cpp
++++ b/src/app/file/split_filename_tests.cpp
+@@ -39,8 +39,11 @@ TEST(SplitFilename, InvalidEraseInLeftPart_Issue784)
+ std::string left, right;
+ int width;
+
+- EXPECT_EQ(1, split_filename("by \xe3\x81\xa1\xe3\x81\x83\xe3\x81\xbe\\0001.png", left, right, width));
+- EXPECT_EQ("by \xe3\x81\xa1\xe3\x81\x83\xe3\x81\xbe\\", left);
++ std::string sep;
++ sep.push_back(base::path_separator);
++
++ EXPECT_EQ(1, split_filename("by \xE3\x81\xA1\xE3\x81\x83\xE3\x81\xBE\\0001.png", left, right, width));
++ EXPECT_EQ("by \xE3\x81\xA1\xE3\x81\x83\xE3\x81\xBE"+sep, left);
+ EXPECT_EQ(".png", right);
+ EXPECT_EQ(4, width);
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 8df8701..1013aa4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ disable-file-and-gif-tests.patch
disable-resize_image_tests.patch
find-pixman-combine32.patch
third_party_cmakelists.patch
+fix_split_filename_tests.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list