From 65dc2f30a160d6fc39183747581175fcddabb17c Mon Sep 17 00:00:00 2001 From: Mateo Torres-Ruiz Date: Wed, 15 Jul 2020 22:40:31 -0700 Subject: Show error on invalid command-line argument (#1360) --- .../CommandLine/InvalidArguments.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/Mono.Linker.Tests.Cases/CommandLine/InvalidArguments.cs (limited to 'test/Mono.Linker.Tests.Cases') diff --git a/test/Mono.Linker.Tests.Cases/CommandLine/InvalidArguments.cs b/test/Mono.Linker.Tests.Cases/CommandLine/InvalidArguments.cs new file mode 100644 index 000000000..22f21400a --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/CommandLine/InvalidArguments.cs @@ -0,0 +1,15 @@ +using Mono.Linker.Tests.Cases.Expectations.Assertions; +using Mono.Linker.Tests.Cases.Expectations.Metadata; + +namespace Mono.Linker.Tests.Cases.CommandLine +{ + [SetupLinkerArgument ("--verbose", "--invalidArgument")] + [LogContains ("Unrecognized command-line option")] + [NoLinkedOutput] + public class InvalidArguments + { + public static void Main () + { + } + } +} -- cgit v1.2.3