gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 128/411: runtests: allow creating files without newlines


From: gnunet
Subject: [gnurl] 128/411: runtests: allow creating files without newlines
Date: Wed, 13 Jan 2021 01:19:03 +0100

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit b83947c8df7a2d427316e5c17839da58541424bc
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Sun Sep 13 23:23:44 2020 +0200

    runtests: allow creating files without newlines
    
    Closes #5946
---
 tests/runtests.pl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/runtests.pl b/tests/runtests.pl
index 3985f7fde..7bfaab57a 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -3753,6 +3753,10 @@ sub singletest {
             subVariables(\$fileContent);
             open(OUTFILE, ">$filename");
             binmode OUTFILE; # for crapage systems, use binary
+            if($fileattr{'nonewline'}) {
+                # cut off the final newline
+                chomp($fileContent);
+            }
             print OUTFILE $fileContent;
             close(OUTFILE);
         }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]