From 2348c9fc53045ab4576757ff5df1b93146ceebe3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 7 Jan 2023 13:18:09 +0100 Subject: Set default sanitize level for tests to none --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 2fc470e..c67ac68 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -179,7 +179,7 @@ static void usageTest() printf(" project_path The directory containing a project.conf file - Optional (default: current directory)\n"); printf(" --debug|--release Optimization level to build project and dependencies with (if not a system package) - Optional (default: --debug)\n"); printf(" --build|-b Build tests but don't run them\n"); - printf(" --sanitize=option Add runtime address/undefined behavior sanitization. Program can be up to 3 times slower and use 10 times as much RAM. Ignored if compiler doesn't support sanitization - Optional (default: address)\n"); + printf(" --sanitize=option Add runtime address/undefined behavior sanitization. Program can be up to 3 times slower and use 10 times as much RAM. Ignored if compiler doesn't support sanitization - Optional (default: none)\n"); printf(" --file Specify file to test, path to test file should be defined after this. Can be defined multiple times to test multiple files - Optional (default: not used), Only applicable for Zig\n"); printf(" --all-files Test all files - Optional (default: not used), Only applicable for Zig\n"); printf(" --linker=linker The linker to use. \"lld\" or \"gold\" is the default linker when using gcc\n"); @@ -693,7 +693,7 @@ static int testProject(int argc, const _tinydir_char_t **argv) FileString projectPath; vector filesToTest; bool testAllFiles = false; - Sanitize sanitize = Sanitize::ADDRESS; + Sanitize sanitize = Sanitize::NONE; bool sanitize_defined = false; bool buildOnly = false; bool skipCompile = false; -- cgit v1.2.3