Tests: Add bad option test.

This commit is contained in:
Wilson Snyder
2020-04-23 19:56:26 -04:00
parent 6ed10b7fde
commit f93ae707e0
5 changed files with 46 additions and 2 deletions
+2 -2
View File
@@ -804,7 +804,7 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
} else if (!strcmp(sw, "+librescan")) { // NOP
} else if (!strcmp(sw, "+notimingchecks")) { // NOP
} else {
fl->v3fatal("Invalid Option: " << argv[i]);
fl->v3fatal("Invalid option: " << argv[i]);
}
shift;
}
@@ -1293,7 +1293,7 @@ void V3Options::parseOptsList(FileLine* fl, const string& optdir, int argc, char
shift;
addIncDirUser(parseFileArg(optdir, string(argv[i])));
} else {
fl->v3fatal("Invalid Option: " << argv[i]);
fl->v3fatal("Invalid option: " << argv[i]);
}
shift;
} // - options