~mvo/apt/mvo

« back to all changes in this revision

Viewing changes to test/libapt/compareversion_test.cc

  • Committer: Michael Vogt
  • Date: 2011-11-10 15:32:52 UTC
  • mfrom: (1561.70.60 debian-experimental2)
  • Revision ID: michael.vogt@ubuntu.com-20111110153252-1u9lc3lm2cgb6b1m
merged from http://bzr.debian.org/bzr/apt/apt/debian-experimental2

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
bool RunTest(const char *File)
65
65
{
 
66
   if (FileExists(File) == false)
 
67
      return _error->Error("Versiontestfile %s doesn't exist!", File);
 
68
 
66
69
   ifstream F(File,ios::in);
67
70
   if (!F != 0)
68
71
      return false;
112
115
 
113
116
int main(int argc, char *argv[])
114
117
{
115
 
   if (argc <= 1)
116
 
      RunTest("../versions.lst");
 
118
   if (argc != 2)
 
119
      return 1;
117
120
   else
118
121
      RunTest(argv[1]);
119
122