From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- xpcom/tests/TestArguments.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 xpcom/tests/TestArguments.cpp (limited to 'xpcom/tests/TestArguments.cpp') diff --git a/xpcom/tests/TestArguments.cpp b/xpcom/tests/TestArguments.cpp new file mode 100644 index 000000000..a9a9a258b --- /dev/null +++ b/xpcom/tests/TestArguments.cpp @@ -0,0 +1,25 @@ +#include + +int main(int argc, char* argv[]) { + if (argc != 9) + return -1; + + if (strcmp("mozilla", argv[1]) != 0) + return 1; + if (strcmp("firefox", argv[2]) != 0) + return 2; + if (strcmp("thunderbird", argv[3]) != 0) + return 3; + if (strcmp("seamonkey", argv[4]) != 0) + return 4; + if (strcmp("foo", argv[5]) != 0) + return 5; + if (strcmp("bar", argv[6]) != 0) + return 6; + if (strcmp("argument with spaces", argv[7]) != 0) + return 7; + if (strcmp("\"argument with quotes\"", argv[8]) != 0) + return 8; + + return 0; +} -- cgit v1.2.3