mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 06:58:50 +00:00
Fix fuzzer and parser
This commit is contained in:
@@ -93,7 +93,7 @@ impl AssertSupported for FunctionDefinition {
|
||||
fn assert_supported(&self) {
|
||||
self.specifiers.assert_supported();
|
||||
self.declarator.assert_supported();
|
||||
self.declarations.is_empty();
|
||||
assert!(self.declarations.is_empty());
|
||||
self.statement.assert_supported();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,6 +95,14 @@ if __name__ == "__main__":
|
||||
raw_test_file = "raw_test.c"
|
||||
test_file = "test.c"
|
||||
try:
|
||||
print("Building KECC..")
|
||||
try:
|
||||
proc = subprocess.Popen(["cargo", "build", "--release"], cwd=tests_dir)
|
||||
proc.communicate()
|
||||
except subprocess.TimeoutExpired as e:
|
||||
proc.kill()
|
||||
raise e
|
||||
|
||||
if args.num is None:
|
||||
print("Fuzzing with infinitely many test cases. Please press [ctrl+C] to break.")
|
||||
iterator = itertools.count(0)
|
||||
|
||||
Reference in New Issue
Block a user