Changeset 208413 in webkit
- Timestamp:
- Nov 4, 2016 7:48:16 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r208410 r208413 1 2016-11-04 JF Bastien <jfbastien@apple.com> 2 3 testWASM should be very sad if no options are provided 4 https://bugs.webkit.org/show_bug.cgi?id=164444 5 6 Reviewed by Saam Barati. 7 8 Detect missing or invalid options on the command line. 9 10 * testWasm.cpp: 11 (CommandLine::parseArguments): 12 1 13 2016-11-04 Mark Lam <mark.lam@apple.com> 2 14 -
trunk/Source/JavaScriptCore/testWasm.cpp
r208402 r208413 47 47 } 48 48 49 Vector<String> m_arguments;50 49 bool m_runLEBTests { false }; 51 50 bool m_runWasmTests { false }; … … 69 68 int i = 1; 70 69 70 if (argc == i) 71 printUsageStatement(false); 72 71 73 for (; i < argc; ++i) { 72 74 const char* arg = argv[i]; 73 if (!strcmp(arg, "-h") || !strcmp(arg, "--help")) 75 76 if (!strcmp(arg, "-h") || !strcmp(arg, "--help")) { 74 77 printUsageStatement(true); 75 76 if (!strcmp(arg, "-l") || !strcmp(arg, "--leb")) 78 RELEASE_ASSERT_NOT_REACHED(); 79 } 80 81 if (!strcmp(arg, "-l") || !strcmp(arg, "--leb")) { 77 82 m_runLEBTests = true; 78 79 if (!strcmp(arg, "-w") || !strcmp(arg, "--web")) 83 continue; 84 } 85 86 if (!strcmp(arg, "-w") || !strcmp(arg, "--web")) { 80 87 m_runWasmTests = true; 81 } 82 83 for (; i < argc; ++i) 84 m_arguments.append(argv[i]); 85 88 continue; 89 } 90 91 fprintf(stderr, "Unknown option %s\n", arg); 92 printUsageStatement(false); 93 } 86 94 } 87 95
Note: See TracChangeset
for help on using the changeset viewer.