Explorar o código

Explicitly fail if no exceptions thrown in `File.copy` test for non-existent files

Alexander Kuzmenko %!s(int64=6) %!d(string=hai) anos
pai
achega
959967839e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tests/sys/src/io/TestFile.hx

+ 2 - 0
tests/sys/src/io/TestFile.hx

@@ -27,6 +27,8 @@ class TestFile extends utest.Test {
 		} catch(e:Dynamic) {
 			//see https://github.com/HaxeFoundation/haxe/issues/8098
 			Assert.pass();
+			return;
 		}
+		Assert.fail();
 	}
 }