Skip to content

Conversation

@carnhofdaki
Copy link
Contributor

@carnhofdaki carnhofdaki commented Oct 9, 2019

Fix by removing "L" as suggested by meeDamian in
#14948 (comment)

# all in .../bitcoin/src/test
$ uname -m
x86_64
$ export LC_ALL=randomnonexistentlocale
$ ./test_bitcoin
Running 369 test cases...
unknown location(0): fatal error: in "fs_tests/fsbridge_fstream": boost::system::system_error: boost::filesystem::path codecvt to string: error
test/fs_tests.cpp(13): last checkpoint: "fsbridge_fstream" test entry

*** 1 failure is detected in the test module "Bitcoin Core Test Suite"

After the patch is applied, the same test under the same conditions runs fine.

$ export LC_ALL=randomnonexistentlocale
$ ./test_bitcoin
Running 369 test cases...

*** No errors detected

Co-Authored-By: [email protected]

@fanquake
Copy link
Member

fanquake commented Oct 9, 2019

@carnhofdaki please remove any @mentions from your commit message. I have removed the one in your PR description. We don't include them in either as they just result in spam. If you'd like to attribute the change you could use the Co-Authored-By: name <email> syntax in your commit.

@laanwj
Copy link
Member

laanwj commented Oct 9, 2019

ACK (after fanquake's comment addressed)

Comment #14948 (comment)
Turns out this is the only place a L" string is used (besides a windows-specific workaround in src/util/system.cpp, irrelevant to this). No need to test this if we're not using it in the application.

@carnhofdaki
Copy link
Contributor Author

@fanquake thank you for comment. Done. Is it good now?

@meeDamian
Copy link
Contributor

please remove any @mentions from your commit message. I have removed the one in your PR description. We don't include them in either as they just result in spam.

💔, but 💯 agree.

This change fixes builds for me, looking forward to merge!

@laanwj laanwj changed the title tests: Fix fs_tests for unknows locales tests: Fix fs_tests for unknown locales Oct 14, 2019
Fix by removing "L" as suggested by meeDamian in
bitcoin#14948 (comment)

Co-Authored-By: [email protected]
@laanwj
Copy link
Member

laanwj commented Oct 15, 2019

ACK d48f664

Hrmph, we should probably fix the false-positive in github-merge.py for full mail addresses. Those don't get notified (afaik).

laanwj added a commit that referenced this pull request Oct 15, 2019
d48f664 tests: Fix fs_tests for unknown locales (Daki Carnhof)

Pull request description:

  Fix by removing "L" as suggested by meeDamian in
  #14948 (comment)

  ```
  # all in .../bitcoin/src/test
  $ uname -m
  x86_64
  $ export LC_ALL=randomnonexistentlocale
  $ ./test_bitcoin
  Running 369 test cases...
  unknown location(0): fatal error: in "fs_tests/fsbridge_fstream": boost::system::system_error: boost::filesystem::path codecvt to string: error
  test/fs_tests.cpp(13): last checkpoint: "fsbridge_fstream" test entry

  *** 1 failure is detected in the test module "Bitcoin Core Test Suite"
  ```

  After the patch is applied, the same test under the same conditions runs fine.

  ```
  $ export LC_ALL=randomnonexistentlocale
  $ ./test_bitcoin
  Running 369 test cases...

  *** No errors detected
  ```

  Co-Authored-By: [email protected]

ACKs for top commit:
  laanwj:
    ACK d48f664

Tree-SHA512: a9910252b8ce6a05cab5530874549c2999ca2c28e835fc18aa8e5468fb417bd7d245864ec71d9233dd53e02940a9f0691b247430257f27eb0d7c20745d1c846d
@laanwj laanwj merged commit d48f664 into bitcoin:master Oct 15, 2019
@carnhofdaki carnhofdaki deleted the cdk/fix_fs_tests branch October 15, 2019 09:39
@hebasto
Copy link
Member

hebasto commented Oct 15, 2019

Post-merge ACK. Tested on ODROID-HC1:

$ gcc --version
gcc (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

Could this PR be backported to 0.19?

@carnhofdaki
Copy link
Contributor Author

@hebasto sure! See #17158

@MarcoFalke What is the process for backports? (In case I did something wrong)

carnhofdaki added a commit to carnhofdaki/bitcoin that referenced this pull request Oct 16, 2019
Fix by removing "L" as suggested by meeDamian in
bitcoin#14948 (comment)

Co-Authored-By: [email protected]

Github-Pull: bitcoin#17086
Rebased-From: d48f664
laanwj added a commit that referenced this pull request Oct 16, 2019
bd9d40d tests: Fix fs_tests for unknown locales (Daki Carnhof)

Pull request description:

  Backporting to `0.19` as suggested in #17086 (comment)

  Fix by removing "L" as suggested by meeDamian in
  #14948 (comment)

  Co-Authored-By: [email protected]

Top commit has no ACKs.

Tree-SHA512: cb73c475560d156034d240c77dfd704526cfb148bcecf302079f1f9b6984117da71f018e1c70a165caed90be48482cb9c4939b001477a44f562fc0c11cb6ede7
@fanquake
Copy link
Member

Backported in #17158.

HashUnlimited pushed a commit to HashUnlimited/chaincoin that referenced this pull request Nov 17, 2019
Fix by removing "L" as suggested by meeDamian in
bitcoin#14948 (comment)

Co-Authored-By: [email protected]

Github-Pull: bitcoin#17086
Rebased-From: d48f664
@Sjors
Copy link
Member

Sjors commented Nov 27, 2019

This fixed the test suite for me on an armv7 device.

deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Apr 10, 2020
Summary: Backport of core [[bitcoin/bitcoin#17086 | PR17086]].

Test Plan:
  ninja check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D5687
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 22, 2021
d48f664 tests: Fix fs_tests for unknown locales (Daki Carnhof)

Pull request description:

  Fix by removing "L" as suggested by meeDamian in
  bitcoin#14948 (comment)

  ```
  # all in .../bitcoin/src/test
  $ uname -m
  x86_64
  $ export LC_ALL=randomnonexistentlocale
  $ ./test_bitcoin
  Running 369 test cases...
  unknown location(0): fatal error: in "fs_tests/fsbridge_fstream": boost::system::system_error: boost::filesystem::path codecvt to string: error
  test/fs_tests.cpp(13): last checkpoint: "fsbridge_fstream" test entry

  *** 1 failure is detected in the test module "Bitcoin Core Test Suite"
  ```

  After the patch is applied, the same test under the same conditions runs fine.

  ```
  $ export LC_ALL=randomnonexistentlocale
  $ ./test_bitcoin
  Running 369 test cases...

  *** No errors detected
  ```

  Co-Authored-By: [email protected]

ACKs for top commit:
  laanwj:
    ACK d48f664

Tree-SHA512: a9910252b8ce6a05cab5530874549c2999ca2c28e835fc18aa8e5468fb417bd7d245864ec71d9233dd53e02940a9f0691b247430257f27eb0d7c20745d1c846d
kwvg pushed a commit to kwvg/dash that referenced this pull request Jun 24, 2021
d48f664 tests: Fix fs_tests for unknown locales (Daki Carnhof)

Pull request description:

  Fix by removing "L" as suggested by meeDamian in
  bitcoin#14948 (comment)

  ```
  # all in .../bitcoin/src/test
  $ uname -m
  x86_64
  $ export LC_ALL=randomnonexistentlocale
  $ ./test_bitcoin
  Running 369 test cases...
  unknown location(0): fatal error: in "fs_tests/fsbridge_fstream": boost::system::system_error: boost::filesystem::path codecvt to string: error
  test/fs_tests.cpp(13): last checkpoint: "fsbridge_fstream" test entry

  *** 1 failure is detected in the test module "Bitcoin Core Test Suite"
  ```

  After the patch is applied, the same test under the same conditions runs fine.

  ```
  $ export LC_ALL=randomnonexistentlocale
  $ ./test_bitcoin
  Running 369 test cases...

  *** No errors detected
  ```

  Co-Authored-By: [email protected]

ACKs for top commit:
  laanwj:
    ACK d48f664

Tree-SHA512: a9910252b8ce6a05cab5530874549c2999ca2c28e835fc18aa8e5468fb417bd7d245864ec71d9233dd53e02940a9f0691b247430257f27eb0d7c20745d1c846d
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Jun 25, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants