INN commit: branches/2.6 (support/getc-tap-harness tests/tap/float.c)

INN Commit rra at isc.org
Thu May 5 13:03:29 UTC 2016


    Date: Thursday, May 5, 2016 @ 06:03:29
  Author: iulius
Revision: 10027

Add missing va_end to is_double

Fix missing va_end() call in is_double(), which would have caused
compilation failures or other problems on some platforms.

Patch taken from upstream C TAP Harness.

Modified:
  branches/2.6/support/getc-tap-harness
  branches/2.6/tests/tap/float.c

--------------------------+
 support/getc-tap-harness |    2 +-
 tests/tap/float.c        |    6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

Modified: support/getc-tap-harness
===================================================================
--- support/getc-tap-harness	2016-05-05 13:01:23 UTC (rev 10026)
+++ support/getc-tap-harness	2016-05-05 13:03:29 UTC (rev 10027)
@@ -171,7 +171,7 @@
 
     if [ "$3" = "float.c" ]
     then
-      sed -i -e "49 i \\
+      sed -i -e "50 i \\
 #ifndef LIBTEST_NEW_FORMAT\\
 /* Specific to the integration of C TAP Harness in INN. */\\
 void\\

Modified: tests/tap/float.c
===================================================================
--- tests/tap/float.c	2016-05-05 13:01:23 UTC (rev 10026)
+++ tests/tap/float.c	2016-05-05 13:03:29 UTC (rev 10027)
@@ -11,7 +11,8 @@
  * This file is part of C TAP Harness.  The current version plus supporting
  * documentation is at <http://www.eyrie.org/~eagle/software/c-tap-harness/>.
  *
- * Copyright 2008, 2010, 2012, 2013, 2014, 2015 Russ Allbery <eagle at eyrie.org>
+ * Copyright 2008, 2010, 2012, 2013, 2014, 2015, 2016
+ *     Russ Allbery <eagle at eyrie.org>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -45,7 +46,6 @@
 
 #include <tap/basic.h>
 #include <tap/float.h>
-
 #ifndef LIBTEST_NEW_FORMAT
 /* Specific to the integration of C TAP Harness in INN. */
 void
@@ -55,6 +55,7 @@
 }
 #endif
 
+
 /*
  * Takes an expected double and a seen double and assumes the test passes if
  * those two numbers are within delta of each other.
@@ -78,5 +79,6 @@
         diag("  seen: %g", seen);
         okv(0, format, args);
     }
+    va_end(args);
     return success;
 }



More information about the inn-committers mailing list