[Forensics-changes] [yara] 349/368: Exclude checks using the "hash" module if it wasn't compiled into YARA
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.5.0
in repository yara.
commit 693ddd7ffd15c1a0c2ac4f56be6e26d2463e063f
Author: plusvic <plusvic at gmail.com>
Date: Wed Jun 29 19:37:18 2016 +0200
Exclude checks using the "hash" module if it wasn't compiled into YARA
---
tests/test-rules.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/test-rules.c b/tests/test-rules.c
index 0ed2524..b596029 100644
--- a/tests/test-rules.c
+++ b/tests/test-rules.c
@@ -1263,7 +1263,7 @@ static void test_modules()
NULL);
}
-
+#if defined(HASH_MODULE)
static void test_hash_module()
{
uint8_t blob[] = {0x61, 0x62, 0x63, 0x64, 0x65};
@@ -1312,6 +1312,7 @@ static void test_hash_module()
}",
blob);
}
+#endif
void test_integer_functions()
@@ -1372,12 +1373,15 @@ int main(int argc, char** argv)
// test_compare();
test_comments();
test_modules();
- test_hash_module();
test_integer_functions();
// test_string_io();
test_entrypoint();
test_global_rules();
+ #if defined(HASH_MODULE)
+ test_hash_module();
+ #endif
+
yr_finalize();
return 0;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list