~ubuntu-branches/ubuntu/maverick/protobuf/maverick

« back to all changes in this revision

Viewing changes to src/google/protobuf/compiler/importer_unittest.cc

  • Committer: Bazaar Package Importer
  • Author(s): Manny Vindiola
  • Date: 2008-12-18 01:26:29 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081218012629-l93kqt3jptydn9zh
Tags: 2.0.3-0ubuntu1
* Merge from new upstream version (LP: #309237), remaining changes:
   * debian/control Moving python-support from Build-Depends-Indep
     to Build-Depends to fix build failures.  
* Fix FTBFS on ia64 architecture due to lack of clone(2)
   - src/gtest/internal/gtest-port.h (LP: #308829)
     disable death tests if architecture is IA64
     adapted from gtest upstream fix at:
     http://codereview.appspot.com/8690/show
* Fix FTBFS on x64 architectures due to python 2.x int vs long issue
  test expects return type long but on x64 architecture return type 
  unpacks to int
   -python/google/protobuf/internal/decoder_test.py
    explicitly type the result value as long 
   taken from upstream discussion:
   http://groups.google.com/group/protobuf/browse_thread
       /thread/2357176cb1f50e10/

Show diffs side-by-side

added added

removed removed

Lines of Context:
516
516
    source_tree_.DiskFileToVirtualFile(
517
517
      "../../baz", &virtual_file, &shadowing_disk_file));
518
518
 
 
519
  // "/foo" is not mapped (it should not be misintepreted as being under ".").
 
520
  EXPECT_EQ(DiskSourceTree::NO_MAPPING,
 
521
    source_tree_.DiskFileToVirtualFile(
 
522
      "/foo", &virtual_file, &shadowing_disk_file));
 
523
 
 
524
#ifdef WIN32
 
525
  // "C:\foo" is not mapped (it should not be misintepreted as being under ".").
 
526
  EXPECT_EQ(DiskSourceTree::NO_MAPPING,
 
527
    source_tree_.DiskFileToVirtualFile(
 
528
      "C:\\foo", &virtual_file, &shadowing_disk_file));
 
529
#endif  // WIN32
 
530
 
519
531
  // But "../baz" should be.
520
532
  EXPECT_EQ(DiskSourceTree::CANNOT_OPEN,
521
533
    source_tree_.DiskFileToVirtualFile(