mirror of
https://git.wownero.com/wownero/RandomWOW.git
synced 2024-08-15 00:23:14 +00:00
Fix tests without JIT support
This commit is contained in:
parent
a3d830064b
commit
7c405a7dc4
1 changed files with 8 additions and 6 deletions
|
@ -1008,12 +1008,14 @@ int main() {
|
|||
|
||||
runTest("Hash test 1e (interpreter)", stringsEqual(RANDOMX_ARGON_SALT, "RandomX\x03"), test_e);
|
||||
|
||||
randomx_release_cache(cache);
|
||||
cache = randomx_alloc_cache(RANDOMX_FLAG_JIT);
|
||||
currentKey.size = 0;
|
||||
randomx_destroy_vm(vm);
|
||||
initCache("test key 000");
|
||||
vm = randomx_create_vm(RANDOMX_FLAG_JIT, cache, nullptr);
|
||||
if (RANDOMX_HAVE_COMPILER) {
|
||||
randomx_release_cache(cache);
|
||||
cache = randomx_alloc_cache(RANDOMX_FLAG_JIT);
|
||||
currentKey.size = 0;
|
||||
randomx_destroy_vm(vm);
|
||||
initCache("test key 000");
|
||||
vm = randomx_create_vm(RANDOMX_FLAG_JIT, cache, nullptr);
|
||||
}
|
||||
|
||||
runTest("Hash test 2a (compiler)", RANDOMX_HAVE_COMPILER && stringsEqual(RANDOMX_ARGON_SALT, "RandomX\x03"), test_a);
|
||||
|
||||
|
|
Loading…
Reference in a new issue