diff --git a/drape/drape_tests/font_texture_tests.cpp b/drape/drape_tests/font_texture_tests.cpp index 102dcb9bb8..f397397b43 100644 --- a/drape/drape_tests/font_texture_tests.cpp +++ b/drape/drape_tests/font_texture_tests.cpp @@ -78,6 +78,8 @@ namespace UNIT_TEST(UploadingGlyphs) { + // This unit test creates window so can't be run in GUI-less Linux machine. +#ifndef OMIM_OS_LINUX EXPECTGL(glHasExtension(_)).Times(AnyNumber()); EXPECTGL(glBindTexture(_)).Times(AnyNumber()); EXPECTGL(glDeleteTexture(_)).Times(AnyNumber()); @@ -122,4 +124,5 @@ UNIT_TEST(UploadingGlyphs) index.UploadResources(make_ref(&tex)); RunTestLoop("UploadingGlyphs", bind(&UploadedRender::Render, &r, _1)); +#endif } diff --git a/drape/drape_tests/glyph_mng_tests.cpp b/drape/drape_tests/glyph_mng_tests.cpp index 601eb423db..326750e25d 100644 --- a/drape/drape_tests/glyph_mng_tests.cpp +++ b/drape/drape_tests/glyph_mng_tests.cpp @@ -77,6 +77,9 @@ namespace UNIT_TEST(GlyphLoadingTest) { + // This unit test creates window so can't be run in GUI-less Linux machine. +#ifndef OMIM_OS_LINUX GlyphRenderer renderer; RunTestLoop("GlyphLoadingTest", bind(&GlyphRenderer::RenderGlyphs, &renderer, _1)); +#endif }