test: fix const qualification compiler warning

`options.file` is of type `const char*`, don't assign it to a variable
that is a non-const `char*`.  The other way around is perfectly legal,
though.

PR-URL: https://github.com/libuv/libuv/pull/1588
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
Ben Noordhuis 2017-10-05 22:44:25 +02:00 committed by cjihrig
parent e8e6a8a500
commit d2101b0b9f
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -1721,9 +1721,9 @@ TEST_IMPL(spawn_quoted_path) {
RETURN_SKIP("Test for Windows");
#else
char* quoted_path_env[2];
options.file = "not_existing";
args[0] = options.file;
args[0] = "not_existing";
args[1] = NULL;
options.file = args[0];
options.args = args;
options.exit_cb = exit_cb;
options.flags = 0;