[tests] Fix/improve Asset utests

ASSET=zip make test-* was broken and now works.

Also added a test stressing concurrent file access.
This commit is contained in:
Thiago Marcos P. Santos
2015-11-26 22:34:00 +02:00
parent ab6477d906
commit 7caaebb162
6 changed files with 116 additions and 27 deletions

View File

@@ -27,7 +27,7 @@ TEST_F(Storage, AssetReadDirectory) {
EXPECT_EQ(Seconds::zero(), res.modified);
EXPECT_EQ("", res.etag);
#ifdef MBGL_ASSET_ZIP
EXPECT_EQ("No such file", res.error->message);
EXPECT_EQ("Could not stat file in zip archive", res.error->message);
#elif MBGL_ASSET_FS
EXPECT_EQ("Is a directory", res.error->message);
#endif