summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerUtil.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-05-18 21:34:20 +0000
committerKostya Serebryany <kcc@google.com>2015-05-18 21:34:20 +0000
commit2da7b8485248c27083318302c30462ddbb5396ca (patch)
tree87e971d0edcf9040bf20121d2bf40fde54d81d11 /llvm/lib/Fuzzer/FuzzerUtil.cpp
parent1638f987f11fa1f8b4292b476b0ee3b92ca9b84c (diff)
downloadbcm5719-llvm-2da7b8485248c27083318302c30462ddbb5396ca.tar.gz
bcm5719-llvm-2da7b8485248c27083318302c30462ddbb5396ca.zip
[lib/Fuzzer] when -sync_command=<CMD> is given, periodically execute 'CMD CORPUS' to synchronize with other processes
llvm-svn: 237617
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerUtil.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerUtil.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerUtil.cpp b/llvm/lib/Fuzzer/FuzzerUtil.cpp
index c4b0afa55d5..06852081f52 100644
--- a/llvm/lib/Fuzzer/FuzzerUtil.cpp
+++ b/llvm/lib/Fuzzer/FuzzerUtil.cpp
@@ -70,4 +70,8 @@ int NumberOfCpuCores() {
return N;
}
+void ExecuteCommand(const std::string &Command) {
+ system(Command.c_str());
+}
+
} // namespace fuzzer
OpenPOWER on IntegriCloud