diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /xpcom/tests/TestArguments.cpp | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'xpcom/tests/TestArguments.cpp')
-rw-r--r-- | xpcom/tests/TestArguments.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
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 <string.h> + +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; +} |