diff options
| author | RblSb <msrblsb@gmail.com> | 2021-09-07 21:46:55 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2021-09-08 19:50:45 +0300 |
| commit | 935505a515d05a65907254fe1d822c41fb07154f (patch) | |
| tree | 7663affdfdd3f59a4283a91539c4a3d034f3fb87 /test/tests/TestServer.hx | |
| parent | 9f819388fbcdd07b6dc85fcf87fd2d6661b61bc3 (diff) | |
Add CI
Diffstat (limited to 'test/tests/TestServer.hx')
| -rw-r--r-- | test/tests/TestServer.hx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/tests/TestServer.hx b/test/tests/TestServer.hx index e5cee58..83031f1 100644 --- a/test/tests/TestServer.hx +++ b/test/tests/TestServer.hx @@ -12,6 +12,8 @@ import utest.Assert; import utest.Async; import utest.Test; +using StringTools; + @:access(server) class TestServer extends Test { @:timeout(500) @@ -29,7 +31,9 @@ class TestServer extends Test { Assert.equals("File %D0%AB%%D1%8B%00%D1%8B! not found.", data); }); request('$url/video/skins/default.php?dir_inc=/etc/passwd%00', data -> { - Assert.equals("File video/skins/default.php?dir_inc=/etc/passwd not found.", data); + var line = "File video/skins/default.php?dir_inc=/etc/passwd not found."; + if (Sys.systemName() == "Windows") line = line.replace("/", "\\"); + Assert.equals(line, data); }); request('$url/%20', data -> { Assert.equals("File not found.", data); |
