소스 검색

Add OS X to travis; fix tests to pass on OS X

Tamir Duberstein 10 년 전
부모
커밋
ed715048c6
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      .travis.yml
  2. 1 1
      src/google/protobuf/compiler/command_line_interface_unittest.cc

+ 3 - 0
.travis.yml

@@ -1,4 +1,7 @@
 language: cpp
+os:
+  - linux
+  - osx
 script: ./autogen.sh && ./configure && make distcheck
 notifications:
   email: false

+ 1 - 1
src/google/protobuf/compiler/command_line_interface_unittest.cc

@@ -991,7 +991,7 @@ TEST_F(CommandLineInterfaceTest, WriteDependencyManifestFile) {
     "  optional Foo foo = 1;\n"
     "}\n");
 
-  string current_working_directory = get_current_dir_name();
+  string current_working_directory = getcwd(NULL, 0);
   SwitchToTempDirectory();
 
   Run("protocol_compiler --dependency_out=manifest --test_out=. "