summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerCommand.h
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [lib/fuzzer] Fix logging for FuchsiaPetr Hosek2018-10-021-2/+2
| | | | | | | | | | | | | | | | | This change fixes two aspects of logging on Fuchsia: 1. When logging to stdout, the output file descriptor should not be closed in ExecuteCommand, as it prevent fdio_spawn_etc from succeeding in subsequent calls. 2. When logging to a file in anything other than standalone Zircon, the log file needs to be created in mutable storage. The best indicator where this is relative to the Fuchsia component will be given by '-artifact_prefix=...', so save the log file relative to that path. Patch by: aarongreen Differential Revision: https://reviews.llvm.org/D52562 llvm-svn: 343607
* [libFuzzer] [NFC] Inline static variable to avoid the linker warning.George Karpenkov2018-07-041-2/+1
| | | | | | Differential Revision: https://reviews.llvm.org/D48650 llvm-svn: 336238
* [libFuzzer] Make redirects happen in proper sequence.Matt Morehouse2017-12-051-2/+2
| | | | | | | "> file" must come before "2>&1" to have redirection occur correctly in all cases. Fixes a regression on minimize_two_crashes.test. llvm-svn: 319792
* [libFuzzer] Remove const from ignoreRemainingArgs return value.Matt Morehouse2017-12-041-2/+2
| | | | | | In this case const does nothing but trigger a warning. llvm-svn: 319685
* [libFuzzer] Encapsulate commands in a class.Matt Morehouse2017-12-041-0/+180
Summary: To be more portable (especially w.r.t. platforms without system()), commands should be managed programmatically rather than via string manipulation on the command line. This change introduces Fuzzer::Command, with methods to manage arguments and flags, set output options, and execute the command. Patch By: aarongreen Reviewers: kcc, morehouse Reviewed By: kcc, morehouse Subscribers: llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D40103 llvm-svn: 319680
OpenPOWER on IntegriCloud