This repository was archived by the owner on Nov 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
This repository was archived by the owner on Nov 22, 2018. It is now read-only.
Tests fail on Windows due to platform differences #145
Copy link
Copy link
Open
Description
The following tests fail on Windows, and seem to be related to different handling of EOL and slash/backslash in pathnames between Windows and *nix:
$ go test -tags purego
--- FAIL: TestMemStorage (0.76s)
storage_test.go:485: FAIL: test # 300
-- 300
BEGIN TRANSACTION;
CREATE TABLE t(c blob);
INSERT INTO t VALUES (blob(`
0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
`));
COMMIT;
SELECT * FROM t;
---- g
"c"
[[13 10 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 10 0 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 13 1 0]]
---- e
"c"
[[10 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 1 01 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 10]]
----
--- FAIL: TestFileStorage (8.31s)
storage_test.go:485: FAIL: test # 300
-- 300
BEGIN TRANSACTION;
CREATE TABLE t(c blob);
INSERT INTO t VALUES (blob(`
0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
`));
COMMIT;
SELECT * FROM t;
---- g
"c"
[[13 10 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 10 0 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 13 1 0]]
---- e
"c"
[[10 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 1 01 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 10]]
----
--- FAIL: TestOSFileStorage (8.25s)
storage_test.go:485: FAIL: test # 300
-- 300
BEGIN TRANSACTION;
CREATE TABLE t(c blob);
INSERT INTO t VALUES (blob(`
0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
`));
COMMIT;
SELECT * FROM t;
---- g
"c"
[[13 10 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 13 10]]
---- e
"c"
[[10 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 48 49 50 51 52 53 54 55 56 57 97 98 99 100 101 102 10]]
----
--- FAIL: TestIssue28 (0.01s)
all_test.go:2018: parse file://C:\Users\KRYUKO~1\AppData\Local\Temp\ql-test-657924690\ql.db: invalid character "\\" in host name
--- FAIL: TestIssue56 (0.01s)
all_test.go:2241: parse file://C:\Users\KRYUKO~1\AppData\Local\Temp\ql-test-079864660\test.db: invalid character "\\" in host name
--- FAIL: TestIssue66FileDriver (0.01s)
all_test.go:2537: parse file://C:\Users\KRYUKO~1\AppData\Local\Temp\ql-test-766154662\TestIssue66MemDriver: invalid character "\\" in host name
--- FAIL: TestIssue73 (0.01s)
all_test.go:2621: Call to db.Begin()
all_test.go:2623: db.Begin: parse file://C:\Users\KRYUKO~1\AppData\Local\Temp\ql-test-812338893\test.db: invalid character "\\" in host name
--- FAIL: TestHTTP (0.00s)
httpfs_test.go:123: file does not exist
FAIL
exit status 1
FAIL github.com/vkryukov/ql 19.397s
Metadata
Metadata
Assignees
Labels
No labels