Page MenuHomePhabricator

Fix temporary file creation for validation_tests
ClosedPublic

Authored by deadalnix on Jun 14 2017, 10:34.

Details

Summary

This should hopefully fix the test in validation_tests.cpp
on Windows, where tmpfile() is unusable, at least on travis.

Note for future reference: tmpfile() support seems quite broken on
Windows and should be avoided.

Test Plan

src/test/test_bitcoin -t validation_tests

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jun 14 2017, 12:38

Tested ok for me on Linux, will put it through Travis to see about the Windows build.

See:

https://travis-ci.org/ftrader-bitcoinabc/bitcoin-abc/builds/242820846

deadalnix edited reviewers, added: awemany; removed: deadalnix.
This revision was automatically updated to reflect the committed changes.