Skip to content

Commit a0bb4a3

Browse files
authored
Fix spurious diff if the cases generator is run on Windows (#108319)
1 parent fc23f34 commit a0bb4a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/cases_generator/generate_cases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def from_source_files(self) -> str:
237237
except ValueError:
238238
# May happen on Windows if root and temp on different volumes
239239
pass
240-
filenames.append(filename)
240+
filenames.append(filename.replace(os.path.sep, posixpath.sep))
241241
paths = f"\n{self.out.comment} ".join(filenames)
242242
return f"{self.out.comment} from:\n{self.out.comment} {paths}\n"
243243

0 commit comments

Comments
 (0)