Bug #111771 Mysql client test did not give the correct test name when tests are not found

Submitted: 17 Jul 2023 7:54 Modified: 17 Jul 2023 8:14
Reporter: He Wang Email Updates:
Status: Verified Impact on me:
None 
Category:Tests Severity:S3 (Non-critical)
Version:8.0, 8.0.33 OS:Any
Assigned to: CPU Architecture:Any

[17 Jul 2023 7:54] He Wang
Description:
When mysql_client_test fails, the output:

Given test not found: 'ALWAYS THE NAME OF FIRST TEST'

How to repeat:
./mysql_client_test test_bug5019 fff

Suggested fix:
--- a/testclients/mysql_client_fw.cc
+++ b/testclients/mysql_client_fw.cc
@@ -1262,7 +1260,7 @@ int main(int argc, char **argv) {
           }
         }
         if (!fptr->name) {
-          fprintf(stderr, "\n\nGiven test not found: '%s'\n", *argv);
+          fprintf(stderr, "\n\nGiven test not found: '%s'\n", *curr_test);
           fprintf(stderr, "See legal test names with %s -T\n\nAborting!\n",
                   my_progname);
           client_disconnect(mysql);
[17 Jul 2023 8:14] MySQL Verification Team
Hello He Wang,

Thank you for the report and feedback.
Verified as described.

regards,
Umesh

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.070 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.