File: incorrect_stderr_output.patch

package info (click to toggle)
libnxml 0.18.3-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,824 kB
  • sloc: sh: 8,928; ansic: 3,610; makefile: 40
file content (19 lines) | stat: -rw-r--r-- 634 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fixing incorrect usage of stderr in test/new.c
 This patch is fixing an incorrect redirect to stderr that makes autopkgtest
 fail for no good reason.
Author: Joseph Herlant <aerostitch@debian.org>
Forwarded: https://github.com/bakulf/libnxml/pull/4
Last-Update: 2019-01-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/new.c
+++ b/test/new.c
@@ -61,7 +61,7 @@
 	    for (j = 0; j < 10; j++)
 	      {
 		attr = NULL;
-		fprintf (stderr, "Creatin a attribute... ");
+		fprintf (stdout, "Creatin a attribute... ");
 		ret = nxml_add_attribute (data, item, &attr);
 		check (data, ret);