mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-23 04:22:44 +00:00
Cleanup: since explorer_fuzzer is now a standard cc_fuzz_test, and runs on all files in the corpus, there's no need for fuzzer_util_test to do the same manually
Before: ``` //explorer/fuzzing:fuzzer_util_test PASSED in 18.5s ``` After: ``` //explorer/fuzzing:fuzzer_util_test PASSED in 0.3s ```
This commit is contained in:
1 parent
25d824ef15
commit
98d95cd188
5 files changed
+51
-46
No files matched your search
@@ -4,8 +4,15 @@
|
||||
|
||||
#include <libprotobuf_mutator/src/libfuzzer/libfuzzer_macro.h>
|
||||
|
||||
#include "common/error.h"
|
||||
#include "explorer/fuzzing/fuzzer_util.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
DEFINE_TEXT_PROTO_FUZZER(const Carbon::Fuzzing::Carbon& input) {
|
||||
Carbon::ParseAndExecute(input.compilation_unit());
|
||||
const auto result = Carbon::ParseAndExecute(input.compilation_unit());
|
||||
if (result.ok()) {
|
||||
llvm::outs() << "Executed OK: " << *result << "\n";
|
||||
} else {
|
||||
llvm::errs() << "Execution failed: " << result.error() << "\n";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user