summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerOptions.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2019-02-09 00:16:21 +0000
committerKostya Serebryany <kcc@google.com>2019-02-09 00:16:21 +0000
commit0fda9dcbe9afe607fe9d25a6d733126bed3d0a3b (patch)
tree3728c0cc6d439f6ed34bde54a37f48e97044c4f1 /compiler-rt/lib/fuzzer/FuzzerOptions.h
parent91970564191bfc40ea9f2c8d32cc1fb6c314515c (diff)
downloadbcm5719-llvm-0fda9dcbe9afe607fe9d25a6d733126bed3d0a3b.tar.gz
bcm5719-llvm-0fda9dcbe9afe607fe9d25a6d733126bed3d0a3b.zip
[libFuzzer] more refactoring; change some of the exit codes (timeout, OOM, interrupt) so that the parent process can distinguish those
llvm-svn: 353584
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerOptions.h')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerOptions.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerOptions.h b/compiler-rt/lib/fuzzer/FuzzerOptions.h
index 3f8e959f490..868327d58d0 100644
--- a/compiler-rt/lib/fuzzer/FuzzerOptions.h
+++ b/compiler-rt/lib/fuzzer/FuzzerOptions.h
@@ -19,7 +19,9 @@ struct FuzzingOptions {
size_t MaxLen = 0;
size_t LenControl = 1000;
int UnitTimeoutSec = 300;
- int TimeoutExitCode = 77;
+ int TimeoutExitCode = 70;
+ int OOMExitCode = 71;
+ int InterruptExitCode = 72;
int ErrorExitCode = 77;
int MaxTotalTimeSec = 0;
int RssLimitMb = 0;
OpenPOWER on IntegriCloud