Просмотр исходного кода

* Fix error message to output versions in the order in ...
Author: mdz
Date: 2003-08-18 15:55:19 GMT
* Fix error message to output versions in the order in which they were
compared when the reverse comparison fails

Arch Librarian лет назад: 22
Родитель
Сommit
e739e4603c
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 0
      debian/changelog
  2. 2 2
      test/versiontest.cc

+ 2 - 0
debian/changelog

@@ -7,6 +7,8 @@ apt (0.5.10) unstable; urgency=low
   * Get self-tests compiling again, updated for latest library API
     and g++ 3.3
   * Add version comparison tests for #194327 and #205960
+  * Fix error message to output versions in the order in which they were
+    compared when the reverse comparison fails
 
  -- 
 

+ 2 - 2
test/versiontest.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: versiontest.cc,v 1.4 2003/08/18 15:32:38 mdz Exp $
+// $Id: versiontest.cc,v 1.5 2003/08/18 15:55:19 mdz Exp $
 /* ######################################################################
 
    Version Test - Simple program to run through a file and comare versions.
@@ -200,7 +200,7 @@ bool RunTest(const char *File)
            Res = 1;
 
       if (Res != Expected)
-	 _error->Error("Comparison failed on line %u. '%s' ? '%s' %i != %i",CurLine,A.c_str(),B.c_str(),Res,Expected);
+	 _error->Error("Comparison failed on line %u. '%s' ? '%s' %i != %i",CurLine,B.c_str(),A.c_str(),Res,Expected);
    }
 }