changeset 6935:c7a96bfc8c0e

2006-07-07 Simon Josefsson <jas@extundo.com> * tests/test-crc.c: Change expected crc value, the test vector were probably computed using the old broken crc.c?
author Simon Josefsson <simon@josefsson.org>
date Thu, 06 Jul 2006 23:56:00 +0000
parents d68ff786c180
children 6a9c52cb4144
files ChangeLog tests/test-crc.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-07  Simon Josefsson  <jas@extundo.com>
+
+	* tests/test-crc.c: Change expected crc value, the test vector
+	were probably computed using the old broken crc.c?
+
 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
 
 	* modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
--- a/tests/test-crc.c
+++ b/tests/test-crc.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005 Free Software Foundation
+ * Copyright (C) 2005, 2006 Free Software Foundation
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -46,7 +46,7 @@
     }
 
   p = crc32_update (42, "foo", 3);
-  if (p != 0x8c736521)
+  if (p != 0xb9a9a617)
     {
       printf ("cu got %lx\n", p);
       return 1;