Commit 3a5a0724 authored by Feng Xiao's avatar Feng Xiao

Skip C# test in C++ only distribution.

parent 8859c07a
...@@ -134,6 +134,14 @@ class GenerateAndTest { ...@@ -134,6 +134,14 @@ class GenerateAndTest {
}; };
TEST(CsharpBootstrapTest, GeneratedCsharpDescriptorMatches) { TEST(CsharpBootstrapTest, GeneratedCsharpDescriptorMatches) {
// Skip this whole test if the csharp directory doesn't exist (i.e., a C++11
// only distribution).
string descriptor_file_name =
"../csharp/src/Google.Protobuf/Reflection/Descriptor.cs";
if (!File::Exists(TestSourceDir() + "/" + descriptor_file_name)) {
return;
}
MockErrorCollector error_collector; MockErrorCollector error_collector;
DiskSourceTree source_tree; DiskSourceTree source_tree;
Importer importer(&source_tree, &error_collector); Importer importer(&source_tree, &error_collector);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment