Skip to content

Conversation

@theuni
Copy link
Member

@theuni theuni commented Jun 4, 2018

Should fix rpc tests that fail due to an unclean stderr.

Untested as I'm not seeing these warnings. @promag mind seeing if this fixes your problem?

@laanwj
Copy link
Member

laanwj commented Jun 5, 2018

utACK 0231ef6

@Empact
Copy link
Contributor

Empact commented Jun 5, 2018

@laanwj
Copy link
Member

laanwj commented Jun 5, 2018

Yes, the messages go to stderr. Which is normally fine, at least they don't mess up the application output!
But the extra stderr output (something with a certain version of OSX) was causing problems in the functional tests for @promag.

@Empact
Copy link
Contributor

Empact commented Jun 5, 2018

Maybe send them to the debuglogfile?

@laanwj
Copy link
Member

laanwj commented Jun 7, 2018

No, bitcoin-cli should definitely not write to any debug log file.

  • That'd be entirely unexpected for a simple command line tool
  • It gets in the way of concurrent usage

@laanwj
Copy link
Member

laanwj commented Jun 7, 2018

@promag Can you test this? It's kind of blocked on that.

@promag
Copy link
Contributor

promag commented Jun 7, 2018

Tested ACK 0231ef6 - it fixes my problem. @theuni how could I test the throw added?

Before:

./src/bitcoin-cli -regtest help
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
== Blockchain ==
getbestblockhash
...

After

./src/bitcoin-cli -regtest help
== Blockchain ==
getbestblockhash
...

@laanwj laanwj merged commit 0231ef6 into bitcoin:master Jun 7, 2018
laanwj added a commit that referenced this pull request Jun 7, 2018
0231ef6 cli: Ignore libevent warnings (Cory Fields)

Pull request description:

  Should fix rpc tests that fail due to an unclean stderr.

  Untested as I'm not seeing these warnings. @promag mind seeing if this fixes your problem?

Tree-SHA512: fba5ae3f239b515e93e19f9c3eca659eb7fb21f1b1fec25b68285695bfd1ecbdcd9b2235543689aaf97bff85cbb762840f65365a67e791314e9a6b8db2c9e246
@maflcko
Copy link
Member

maflcko commented Jun 7, 2018

@theuni how could I test the throw added?

@promag You can test the throw by replacing severity >= EVENT_LOG_ERR with true. Would you mind doing that post-merge, please?

jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Oct 11, 2019
Summary:
Should fix rpc tests that fail due to an unclean stderr.

Backport of Bitcoin Core PR13394
bitcoin/bitcoin#13394

Test Plan:
In a **macOS** terminal:
```
./src/bitcoind -regtest
```

In another **macOS** terminal:
```
./src/bitcoin-cli -regtest help
```

The following warning should not be seen in stdout/stderr:
`[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0`

Reviewers: Fabien, #bitcoin_abc, deadalnix

Reviewed By: Fabien, #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4005
jonspock pushed a commit to jonspock/devault that referenced this pull request Dec 27, 2019
Summary:
Should fix rpc tests that fail due to an unclean stderr.

Backport of Bitcoin Core PR13394
bitcoin/bitcoin#13394

Test Plan:
In a **macOS** terminal:
```
./src/bitcoind -regtest
```

In another **macOS** terminal:
```
./src/bitcoin-cli -regtest help
```

The following warning should not be seen in stdout/stderr:
`[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0`

Reviewers: Fabien, #bitcoin_abc, deadalnix

Reviewed By: Fabien, #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4005
jonspock pushed a commit to devaultcrypto/devault that referenced this pull request Dec 29, 2019
Summary:
Should fix rpc tests that fail due to an unclean stderr.

Backport of Bitcoin Core PR13394
bitcoin/bitcoin#13394

Test Plan:
In a **macOS** terminal:
```
./src/bitcoind -regtest
```

In another **macOS** terminal:
```
./src/bitcoin-cli -regtest help
```

The following warning should not be seen in stdout/stderr:
`[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0`

Reviewers: Fabien, #bitcoin_abc, deadalnix

Reviewed By: Fabien, #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4005
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 28, 2021
0231ef6 cli: Ignore libevent warnings (Cory Fields)

Pull request description:

  Should fix rpc tests that fail due to an unclean stderr.

  Untested as I'm not seeing these warnings. @promag mind seeing if this fixes your problem?

Tree-SHA512: fba5ae3f239b515e93e19f9c3eca659eb7fb21f1b1fec25b68285695bfd1ecbdcd9b2235543689aaf97bff85cbb762840f65365a67e791314e9a6b8db2c9e246
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants