Browse Source

Added environment variable check on MSYS2 in case MSYS2 makes changes to this in the future

merge-requests/365/head
Ole Christian Eidheim 10 years ago
parent
commit
2b11c4c69c
  1. 4
      tests/source_clang_test.cc

4
tests/source_clang_test.cc

@ -22,6 +22,10 @@ void flush_events() {
int main() { int main() {
auto app=Gtk::Application::create(); auto app=Gtk::Application::create();
Gsv::init(); Gsv::init();
#ifdef _WIN32
g_assert_cmpstr(std::getenv("MSYSTEM_PREFIX"), !=, NULL);
#endif
Config::get().project.default_build_path="./build"; Config::get().project.default_build_path="./build";
Source::ClangView *clang_view=new Source::ClangView(boost::filesystem::canonical(std::string(JUCI_TESTS_PATH)+"/source_clang_test_files/main.cpp"), Source::ClangView *clang_view=new Source::ClangView(boost::filesystem::canonical(std::string(JUCI_TESTS_PATH)+"/source_clang_test_files/main.cpp"),

Loading…
Cancel
Save