mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
parent
3015f16fbf
commit
c62829fc03
3 changed files with 2 additions and 25 deletions
|
@ -2784,14 +2784,6 @@ Directory arguments are expanded to all contained files matching the glob
|
||||||
.action(ArgAction::SetTrue)
|
.action(ArgAction::SetTrue)
|
||||||
.help_heading(TEST_HEADING),
|
.help_heading(TEST_HEADING),
|
||||||
)
|
)
|
||||||
.arg(
|
|
||||||
Arg::new("trace-ops")
|
|
||||||
.long("trace-ops")
|
|
||||||
.help("Deprecated alias for --trace-leaks")
|
|
||||||
.hide(true)
|
|
||||||
.action(ArgAction::SetTrue)
|
|
||||||
.help_heading(TEST_HEADING),
|
|
||||||
)
|
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("trace-leaks")
|
Arg::new("trace-leaks")
|
||||||
.long("trace-leaks")
|
.long("trace-leaks")
|
||||||
|
@ -4662,20 +4654,7 @@ fn test_parse(flags: &mut Flags, matches: &mut ArgMatches) {
|
||||||
};
|
};
|
||||||
|
|
||||||
let no_run = matches.get_flag("no-run");
|
let no_run = matches.get_flag("no-run");
|
||||||
let trace_leaks =
|
let trace_leaks = matches.get_flag("trace-leaks");
|
||||||
matches.get_flag("trace-ops") || matches.get_flag("trace-leaks");
|
|
||||||
|
|
||||||
#[allow(clippy::print_stderr)]
|
|
||||||
if trace_leaks && matches.get_flag("trace-ops") {
|
|
||||||
// We can't change this to use the log crate because its not configured
|
|
||||||
// yet at this point since the flags haven't been parsed. This flag is
|
|
||||||
// deprecated though so it's not worth changing the code to use the log
|
|
||||||
// crate here and this is only done for testing anyway.
|
|
||||||
eprintln!(
|
|
||||||
"⚠️ {}",
|
|
||||||
crate::colors::yellow("The `--trace-ops` flag is deprecated and will be removed in Deno 2.0.\nUse the `--trace-leaks` flag instead."),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
let doc = matches.get_flag("doc");
|
let doc = matches.get_flag("doc");
|
||||||
#[allow(clippy::print_stderr)]
|
#[allow(clippy::print_stderr)]
|
||||||
let allow_none = matches.get_flag("permit-no-files")
|
let allow_none = matches.get_flag("permit-no-files")
|
||||||
|
|
|
@ -251,7 +251,7 @@ itest!(allow_none {
|
||||||
});
|
});
|
||||||
|
|
||||||
itest!(ops_sanitizer_unstable {
|
itest!(ops_sanitizer_unstable {
|
||||||
args: "test --trace-ops test/sanitizer/ops_sanitizer_unstable.ts",
|
args: "test --trace-leaks test/sanitizer/ops_sanitizer_unstable.ts",
|
||||||
exit_code: 1,
|
exit_code: 1,
|
||||||
output: "test/sanitizer/ops_sanitizer_unstable.out",
|
output: "test/sanitizer/ops_sanitizer_unstable.out",
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
⚠️ The `--trace-ops` flag is deprecated and will be removed in Deno 2.0.
|
|
||||||
Use the `--trace-leaks` flag instead.
|
|
||||||
Check [WILDCARD]/ops_sanitizer_unstable.ts
|
Check [WILDCARD]/ops_sanitizer_unstable.ts
|
||||||
running 2 tests from [WILDCARD]/ops_sanitizer_unstable.ts
|
running 2 tests from [WILDCARD]/ops_sanitizer_unstable.ts
|
||||||
no-op ... ok ([WILDCARD])
|
no-op ... ok ([WILDCARD])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue