Skip to content

Commit 95fa634

Browse files
committed
test: report sanitizer build define directly
Signed-off-by: astandrik <astandrik@yandex-team.ru>
1 parent f50434e commit 95fa634

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎tests/test_main.c‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ int tf_skip_count = 0;
1818
#include "foundation/mem.h" /* cbm_mem_init — worker budget */
1919
#include "foundation/log.h" /* worker liveness heartbeat probe */
2020
#include "foundation/platform.h" /* cbm_file_exists — blocking-git marker */
21-
#include "foundation/sanitized.h" /* CBM_SANITIZED — --build-config contract */
2221
#include "daemon/runtime.h" /* bounded worker response probe */
2322
#include "daemon/ipc.h" /* Windows private-lock re-exec probe */
2423
#include "daemon/version_cohort.h" /* Windows crash-turnover re-exec probe */
@@ -944,12 +943,17 @@ int main(int argc, char **argv) {
944943
return 2;
945944
}
946945
#endif
946+
#if defined(CBM_SANITIZED_BUILD) && CBM_SANITIZED_BUILD
947+
const int sanitized = 1;
948+
#else
949+
const int sanitized = 0;
950+
#endif
947951
#if defined(CBM_ENABLE_TEST_SEAMS) && CBM_ENABLE_TEST_SEAMS
948952
const int test_seams = 1;
949953
#else
950954
const int test_seams = 0;
951955
#endif
952-
(void)printf("sanitized=%d test_seams=%d\n", CBM_SANITIZED, test_seams);
956+
(void)printf("sanitized=%d test_seams=%d\n", sanitized, test_seams);
953957
return 0;
954958
}
955959
/* Skip the multi-hundred-MB executable-image hash that computes the exact

0 commit comments

Comments
 (0)