patch the failing test, and try again…

This commit is contained in:
Damian Mee 2019-08-19 02:44:24 +07:00
parent c108cddd70
commit 7ea8edb72a
No known key found for this signature in database
GPG Key ID: 2F961EAB8789725D
4 changed files with 36 additions and 7 deletions

View File

@ -1,9 +1,6 @@
# Build stage for Bitcoin Core
FROM alpine:3.10 AS bitcoin-core
# Because sometimes this happens on emulated architectures:
# https://github.com/bitcoin/bitcoin/issues/14948
ENV LC_ALL=C.UTF-8
# fetch already built berkeleydb
COPY --from=lncm/berkeleydb:db-4.8.30.NC /opt /opt
@ -60,6 +57,11 @@ RUN tar -xzf *.tar.gz
# Change to the extraced directory
WORKDIR /bitcoin-${BITCOIN_VERSION}
# Disable test that fails on Alpine for unrelated reasons: missing locale. Not important.
# https://github.com/bitcoin/bitcoin/issues/14948
COPY skip-fs-test-of-utf8.patch .
RUN patch -p0 < skip-fs-test-of-utf8.patch
# ???
RUN sed -i '/AC_PREREQ/a\AR_FLAGS=cr' src/univalue/configure.ac
# ???

View File

@ -0,0 +1,13 @@
diff --git src/test/fs_tests.cpp src/test/fs_tests.cpp
index 93aee10bb..4a01e2ed8 100644
--- src/test/fs_tests.cpp
+++ src/test/fs_tests.cpp
@@ -14,7 +14,7 @@ BOOST_AUTO_TEST_CASE(fsbridge_fstream)
fs::path tmpfolder = SetDataDir("fsbridge_fstream");
// tmpfile1 should be the same as tmpfile2
fs::path tmpfile1 = tmpfolder / "fs_tests_₿_🏃";
- fs::path tmpfile2 = tmpfolder / L"fs_tests_₿_🏃";
+ fs::path tmpfile2 = tmpfolder / "fs_tests_₿_🏃";
{
fsbridge::ofstream file(tmpfile1);
file << "bitcoin";

View File

@ -1,10 +1,6 @@
# Build stage for Bitcoin Core
FROM arm32v7/alpine:3.10 AS bitcoin-core
# Because sometimes this happens on emulated architectures:
# https://github.com/bitcoin/bitcoin/issues/14948
ENV LC_ALL=C.UTF-8
# fetch already built berkeleydb
COPY --from=lncm/berkeleydb:db-4.8.30.NC-linux-arm /opt /opt
@ -60,6 +56,11 @@ RUN tar -xzf *.tar.gz
# Change to the extraced directory
WORKDIR /bitcoin-${BITCOIN_VERSION}
# Disable test that fails on Alpine for unrelated reasons: missing locale. Not important.
# https://github.com/bitcoin/bitcoin/issues/14948
COPY skip-fs-test-of-utf8.patch .
RUN patch -p0 < skip-fs-test-of-utf8.patch
# ???
RUN sed -i '/AC_PREREQ/a\AR_FLAGS=cr' src/univalue/configure.ac
# ???

View File

@ -0,0 +1,13 @@
diff --git src/test/fs_tests.cpp src/test/fs_tests.cpp
index 93aee10bb..4a01e2ed8 100644
--- src/test/fs_tests.cpp
+++ src/test/fs_tests.cpp
@@ -14,7 +14,7 @@ BOOST_AUTO_TEST_CASE(fsbridge_fstream)
fs::path tmpfolder = SetDataDir("fsbridge_fstream");
// tmpfile1 should be the same as tmpfile2
fs::path tmpfile1 = tmpfolder / "fs_tests_₿_🏃";
- fs::path tmpfile2 = tmpfolder / L"fs_tests_₿_🏃";
+ fs::path tmpfile2 = tmpfolder / "fs_tests_₿_🏃";
{
fsbridge::ofstream file(tmpfile1);
file << "bitcoin";