Selaa lähdekoodia

fuzz: cleanup zkas-compile harness in honggfuzz

y 2 vuotta sitten
vanhempi
sitoutus
aaed928482
2 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 1 1
      fuzz/honggfuzz/Cargo.toml
  2. 5 3
      fuzz/honggfuzz/src/zkas_compile.rs

+ 1 - 1
fuzz/honggfuzz/Cargo.toml

@@ -1,5 +1,5 @@
 [package]
 [package]
-name = "darkfi-fuzz2"
+name = "darkfi-fuzz"
 version = "0.0.0"
 version = "0.0.0"
 publish = false
 publish = false
 edition = "2021"
 edition = "2021"

+ 5 - 3
fuzz/honggfuzz/src/zkas_compile.rs

@@ -58,9 +58,11 @@ fn main() {
                 return
                 return
             }
             }
 
 
-            if analyzer.analyze_semantic().is_err() {
-                return
-            }
+            // Skip this section because it automatically pauses to prompt
+            // for user inputwhich is probably preventing coverage.
+            // if analyzer.analyze_semantic().is_err() {
+            //     return
+            // }
 
 
             let compiler = Compiler::new(
             let compiler = Compiler::new(
                 filename,
                 filename,