Fossil SCM
Modify the test-echo command to also show the name of the executable.
Commit
5ed566f805daa2151c17d77d8bdf4380d55b6015
Parent
2f187c2f222dd9f…
1 file changed
+1
+1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2037,10 +2037,11 @@ | ||
| 2037 | 2037 | ** to verify the fossil_filename_to_utf8() routine on Windows and Mac. |
| 2038 | 2038 | */ |
| 2039 | 2039 | void test_echo_cmd(void){ |
| 2040 | 2040 | int i, j; |
| 2041 | 2041 | if( find_option("hex",0,0)==0 ){ |
| 2042 | + fossil_print("g.nameOfExe = [%s]\n", g.nameOfExe); | |
| 2042 | 2043 | for(i=0; i<g.argc; i++){ |
| 2043 | 2044 | fossil_print("argv[%d] = [%s]\n", i, g.argv[i]); |
| 2044 | 2045 | } |
| 2045 | 2046 | }else{ |
| 2046 | 2047 | unsigned char *z, c; |
| 2047 | 2048 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2037,10 +2037,11 @@ | |
| 2037 | ** to verify the fossil_filename_to_utf8() routine on Windows and Mac. |
| 2038 | */ |
| 2039 | void test_echo_cmd(void){ |
| 2040 | int i, j; |
| 2041 | if( find_option("hex",0,0)==0 ){ |
| 2042 | for(i=0; i<g.argc; i++){ |
| 2043 | fossil_print("argv[%d] = [%s]\n", i, g.argv[i]); |
| 2044 | } |
| 2045 | }else{ |
| 2046 | unsigned char *z, c; |
| 2047 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2037,10 +2037,11 @@ | |
| 2037 | ** to verify the fossil_filename_to_utf8() routine on Windows and Mac. |
| 2038 | */ |
| 2039 | void test_echo_cmd(void){ |
| 2040 | int i, j; |
| 2041 | if( find_option("hex",0,0)==0 ){ |
| 2042 | fossil_print("g.nameOfExe = [%s]\n", g.nameOfExe); |
| 2043 | for(i=0; i<g.argc; i++){ |
| 2044 | fossil_print("argv[%d] = [%s]\n", i, g.argv[i]); |
| 2045 | } |
| 2046 | }else{ |
| 2047 | unsigned char *z, c; |
| 2048 |