diff options
| author | Bert Belder <bertbelder@gmail.com> | 2020-08-08 00:51:59 +0200 |
|---|---|---|
| committer | Bert Belder <bertbelder@gmail.com> | 2020-08-08 21:23:21 +0200 |
| commit | f22b7dc78319c2b922770d95a512c761d8158a15 (patch) | |
| tree | 74c917fd55ec958b1ba562fc5db3d78b97adb99e /cli/tests/integration_tests.rs | |
| parent | 707bfbd5b5006a905fda04581795694425aea561 (diff) | |
fix(cli): show error on unrecognized V8 flag, exit on --help (#6980)
Diffstat (limited to 'cli/tests/integration_tests.rs')
| -rw-r--r-- | cli/tests/integration_tests.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index e0d93eef5..233d53d1c 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2030,17 +2030,23 @@ itest!(unbuffered_stdout { // Cannot write the expression to evaluate as "console.log(typeof gc)" // because itest! splits args on whitespace. -itest!(eval_v8_flags { +itest!(v8_flags_eval { args: "eval --v8-flags=--expose-gc console.log(typeof(gc))", output: "v8_flags.js.out", }); -itest!(run_v8_flags { +itest!(v8_flags_run { args: "run --v8-flags=--expose-gc v8_flags.js", output: "v8_flags.js.out", }); -itest!(run_v8_help { +itest!(v8_flags_unrecognized { + args: "repl --v8-flags=--foo,bar,--trace-gc,-baz", + output: "v8_flags_unrecognized.out", + exit_code: 1, +}); + +itest!(v8_help { args: "repl --v8-flags=--help", output: "v8_help.out", }); |
