Note about the lack of Windows support

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2023-10-05 17:23:58 +02:00
parent ca26082ab7
commit c760019dd5

View File

@ -444,6 +444,11 @@ static void write_outcome_result(FILE *outcome_file,
*/
static void try_chdir(const char *argv0)
{
/* We might want to allow backslash as well, for Windows. But then we also
* need to consider chdir() vs _chdir(), and different conventions
* regarding paths in argv[0] (naively enabling this code with
* backslash support on Windows leads to chdir into the wrong directory
* on the CI). */
const char *slash = strrchr(argv0, '/');
if (slash == NULL) {
return;