瀏覽代碼

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

Alexander Kuzmenko 6 年之前
父節點
當前提交
959967839e
共有 1 個文件被更改,包括 2 次插入0 次删除
  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();
 	}
 }