Changeset 595
- Timestamp:
- Apr 14, 2008, 2:10:42 PM (14 years ago)
- Location:
- trunk/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/Makefile.am
r593 r595 36 36 endif 37 37 38 # tests not yes passing are listed here 39 XFAIL_TESTS = copyright 40 41 38 42 LDADD = $(STATICFLAG) @top_builddir@/lib/libsvndigest.la 39 43 -
trunk/test/copyright.cc
r594 r595 55 55 56 56 is.open(filename.c_str()); 57 std::vector<std::string> copyrights =copyright_lines(is);57 std::vector<std::string> copyrights_old=copyright_lines(is); 58 58 is.close(); 59 59 is.clear(std::ios::goodbit); 60 60 61 if (copyrights .size()!=1) {61 if (copyrights_old.size()!=1) { 62 62 if (verbose){ 63 std::cout << copyrights .size() << " Copyright lines\n";64 for (size_t i=0; i<copyrights .size(); ++i)65 std::cout << copyrights [i] << "\n";63 std::cout << copyrights_old.size() << " Copyright lines\n"; 64 for (size_t i=0; i<copyrights_old.size(); ++i) 65 std::cout << copyrights_old[i] << "\n"; 66 66 } 67 67 ok = false; … … 93 93 file.print_copyright(alias, verbose); 94 94 95 is.open(filename.c_str()); 96 std::vector<std::string> copyrights=copyright_lines(is); 97 is.close(); 98 is.clear(std::ios::goodbit); 99 100 if (copyrights.size()!=2) { 101 ok = false; 102 if (verbose) 103 std::cout << "ERROR: expected two lines of Copyright (C)\n"; 104 } 105 if (verbose) { 106 std::cout << copyrights.size() << " Copyright lines\n"; 107 for (size_t i=0; i<copyrights.size(); ++i) 108 std::cout << copyrights[i] << "\n"; 109 } 110 95 111 // Restoring file 96 112 std::ofstream os(filename.c_str());
Note: See TracChangeset
for help on using the changeset viewer.