]> Savannah Git Hosting - gnulib.git/commitdiff
test-timespec: fix typo in previous change
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 6 Nov 2015 02:32:03 +0000 (18:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 6 Nov 2015 02:32:24 +0000 (18:32 -0800)
* tests/test-timespec.c (main): Fix typo that reduced test quality.

ChangeLog
tests/test-timespec.c

index 82534cb47879a18df5a15e2b7815d15a2b85d669..b0385b74882eaacacef467b674ce609cd5bfbcd7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
 
+       test-timespec: fix typo in previous change
+       * tests/test-timespec.c (main): Fix typo that reduced test quality.
+
        timespec-sub: fix overflow bug; add tests
        * lib/timespec-add.c (timespec_add):
        * lib/timespec-sub.c (timespec_sub):
index 839906cf37a06984076f5058ae4ce6472cfe1642..20bbd0b9854fdb23fd8a69ff642127d9180f318f 100644 (file)
@@ -144,7 +144,7 @@ main (void)
 
                    for (k = 0; k < ntests; k++)
                      {
-                       struct timespec c = test[j];
+                       struct timespec c = test[k];
                        if (valid (c))
                          {
                            struct timespec sumbc = timespec_add (b, c);