mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Deprecate --test-nocapture in favour of --test-show-output #2588.
This commit is contained in:
@@ -503,7 +503,7 @@ macro void? @try(#v, #expr) @builtin @maydiscard
|
|||||||
{
|
{
|
||||||
char[] data;
|
char[] data;
|
||||||
// Read until end of file
|
// Read until end of file
|
||||||
if (@try_catch(data, load_line(), io::EOF)) break;
|
if (@try_catch(data, load_line(), io::EOF)!) break;
|
||||||
.. use data ..
|
.. use data ..
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ $endif
|
|||||||
case "--test-noleak":
|
case "--test-noleak":
|
||||||
check_leaks = false;
|
check_leaks = false;
|
||||||
case "--test-nocapture":
|
case "--test-nocapture":
|
||||||
|
case "--test-show-output":
|
||||||
context.is_no_capture = true;
|
context.is_no_capture = true;
|
||||||
case "--noansi":
|
case "--noansi":
|
||||||
context.has_ansi_codes = false;
|
context.has_ansi_codes = false;
|
||||||
|
|||||||
@@ -66,6 +66,7 @@
|
|||||||
- The option `--riscvfloat` renamed `--riscv-abi`.
|
- The option `--riscvfloat` renamed `--riscv-abi`.
|
||||||
- Add initial `--cpu-flags` allowing fine grained control over CPU features.
|
- Add initial `--cpu-flags` allowing fine grained control over CPU features.
|
||||||
- Add `--riscv-cpu` settings for RISC-V processors #2549.
|
- Add `--riscv-cpu` settings for RISC-V processors #2549.
|
||||||
|
- Deprecate `--test-nocapture` in favour of `--test-show-output` #2588.
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- Bug in `io::write_using_write_byte`.
|
- Bug in `io::write_using_write_byte`.
|
||||||
|
|||||||
@@ -529,7 +529,7 @@ typedef struct BuildOptions_
|
|||||||
bool test_quiet;
|
bool test_quiet;
|
||||||
bool test_nosort;
|
bool test_nosort;
|
||||||
bool test_noleak;
|
bool test_noleak;
|
||||||
bool test_nocapture;
|
bool test_show_output;
|
||||||
const char *custom_linker_path;
|
const char *custom_linker_path;
|
||||||
uint32_t symtab_size;
|
uint32_t symtab_size;
|
||||||
unsigned version;
|
unsigned version;
|
||||||
|
|||||||
@@ -150,8 +150,9 @@ static void usage(bool full)
|
|||||||
print_opt("--test-filter <arg>", "Set a filter when running tests, running only matching tests.");
|
print_opt("--test-filter <arg>", "Set a filter when running tests, running only matching tests.");
|
||||||
print_opt("--test-breakpoint", "When running tests, trigger a breakpoint on failure.");
|
print_opt("--test-breakpoint", "When running tests, trigger a breakpoint on failure.");
|
||||||
print_opt("--test-nosort", "Do not sort tests.");
|
print_opt("--test-nosort", "Do not sort tests.");
|
||||||
print_opt("--test-noleak", "Disable tracking allocator and memory leak detection for tests");
|
print_opt("--test-noleak", "Disable tracking allocator and memory leak detection for tests.");
|
||||||
print_opt("--test-nocapture", "Disable test stdout capturing, all tests can print as they run");
|
print_opt("--test-show-output", "Disable test stdout capturing, all tests can print as they run.");
|
||||||
|
print_opt("--test-nocapture", "Disable test stdout capturing, all tests can print as they run, same as --test-show-output.");
|
||||||
print_opt("--test-quiet", "Run tests without printing full names, printing output only on failure");
|
print_opt("--test-quiet", "Run tests without printing full names, printing output only on failure");
|
||||||
print_opt("--test-log-level=<verbose|debug|info|warn|error|critical>", "Set log priority when running tests.");
|
print_opt("--test-log-level=<verbose|debug|info|warn|error|critical>", "Set log priority when running tests.");
|
||||||
}
|
}
|
||||||
@@ -795,9 +796,9 @@ static void parse_option(BuildOptions *options)
|
|||||||
options->test_noleak = true;
|
options->test_noleak = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (match_longopt("test-nocapture"))
|
if (match_longopt("test-nocapture") || match_longopt("test-show-output"))
|
||||||
{
|
{
|
||||||
options->test_nocapture = true;
|
options->test_show_output = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (match_longopt("test-quiet"))
|
if (match_longopt("test-quiet"))
|
||||||
|
|||||||
@@ -331,7 +331,7 @@ static void update_build_target_from_options(BuildTarget *target, BuildOptions *
|
|||||||
if (options->test_nosort) vec_add(target->args, "--test-nosort");
|
if (options->test_nosort) vec_add(target->args, "--test-nosort");
|
||||||
if (options->test_quiet) vec_add(target->args, "--test-quiet");
|
if (options->test_quiet) vec_add(target->args, "--test-quiet");
|
||||||
if (options->test_noleak) vec_add(target->args, "--test-noleak");
|
if (options->test_noleak) vec_add(target->args, "--test-noleak");
|
||||||
if (options->test_nocapture) vec_add(target->args, "--test-nocapture");
|
if (options->test_show_output) vec_add(target->args, "--test-show-output");
|
||||||
break;
|
break;
|
||||||
case COMMAND_RUN:
|
case COMMAND_RUN:
|
||||||
case COMMAND_COMPILE_RUN:
|
case COMMAND_COMPILE_RUN:
|
||||||
|
|||||||
Reference in New Issue
Block a user