You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* We create a fake pipe on WASI as creating a pipe is not possible. */
8
+
finalclassFakePipe{
9
+
10
+
init(){
11
+
/* For some reasons, creating the file with `FakePipe.fm.createFile(atPath: filepath, contents: nil)` fails.
12
+
* Instead we use the Data.write(to:) method which works. */
13
+
guard(try?Data().write(to: fileURL))!=nilelse{
14
+
fatalError("\u{1B}[91;1mCould not create temporary file.\u{1B}[0m\n\u{1B}[31;1mPlease make sure to run the test with the `--dir \"\(fileURL.deletingLastPathComponent().path)\"` option.\u{1B}[0m")
0 commit comments