about summary refs log tree commit diff stats
path: root/src/custommem.c
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-10-14 15:11:15 +0800
committerGitHub <noreply@github.com>2025-10-14 09:11:15 +0200
commit3d0423acf703be7e0e7b004ee85630f6684bf72e (patch)
treeffd0958823f0cd8a4a2ac2cccfea53ed6ff2350d /src/custommem.c
parent3ad0ddfe880ee2edbc6cd05ce9cb8acb82b34331 (diff)
downloadbox64-3d0423acf703be7e0e7b004ee85630f6684bf72e.tar.gz
box64-3d0423acf703be7e0e7b004ee85630f6684bf72e.zip
Added preliminary unit test runner (#3045)
* Added preliminary unit test runner

* Set .text section address

* Added support for added custom memory regions

* Move json.h to include

* Display banner

* Added support for custom memory data

* Added the ability to include path in nasm

* Print env variables
Diffstat (limited to 'src/custommem.c')
-rw-r--r--src/custommem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c
index 7c997422..448a3fcc 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -2467,7 +2467,8 @@ void loadProtectionFromMap()
             printf_log(LOG_INFO, "Didn't detect 48bits of address space, considering it's 39bits\n");
     }
     if(!pbrk) {
-        printf_log(LOG_INFO, "Warning, program break not found\n");
+        if (!box64_unittest_mode)
+            printf_log(LOG_INFO, "Warning, program break not found\n");
         if(cur_brk) pbrk = *cur_brk;    // approximate is better than nothing
     }
     fclose(f);