apparently incorrect error msg in tcltes
Closed / Fixed596027ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-08-16 13:20:04
around line 270 of tclUnixTest.c I see the following:
} else if (strcmp(argv[1], "fill") == 0) {
if (argc != 3) {
Tcl_AppendResult(interp, "wrong #
arguments: should be \"",
argv[0], " empty index\"", (char *)
NULL);
return TCL_ERROR;
}
The code surrounding these lines would lead me to
believe that the msg should say "fill index" rather
than empty index.
The same thing can be seen here:
} else if (strcmp(argv[1], "fillpartial") == 0) {
char buf[TCL_INTEGER_SPACE];
if (argc != 3) {
Tcl_AppendResult(interp, "wrong #
arguments: should be \"",
argv[0], " empty index\"", (char *)
NULL);
return TCL_ERROR;
}
where it would seem that empty should be fillpartial.
dgpplain2002-08-19 23:36:00
Logged In: YES user_id=80530 That routine is for testing the Notifier.
kennykbplain2003-02-16 04:03:27
Logged In: YES user_id=99768 Well, yes, and I changed them. I do wonder, though, at the sort of mind that would find this issue. These commands should be called only from the test suite (they aren't present in a stock tclsh or wish) and the test suite calls them only with correct syntax. Auditing the code in the test harnesses is not something that I'd recommend for entertainment.
Log in (anonymous is fine) to add a comment.