This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.17-532-g206a669


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  206a6699116215c591c8562c67106f7e17146608 (commit)
      from  0582f6b3d6fab2128ee43a06250571922ee7c1e3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=206a6699116215c591c8562c67106f7e17146608

commit 206a6699116215c591c8562c67106f7e17146608
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Mon Apr 15 13:52:26 2013 +0530

    Write to bench.out-tmp only once
    
    Appending benchmark program output on every run could result in a case
    where the benchmark run was cancelled, resulting in a partially
    written file.  This file gets used again on the next run, resulting in
    results being appended to old results.
    
    It could have been possible to remove the file before every benchmark
    run, but it is easier to just write the output to bench.out-tmp only
    once.

diff --git a/ChangeLog b/ChangeLog
index 6a02e77..2284d7f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	* benchtests/Makefile (bench): Write all output to
+	bench-out.tmp together.
+
 2013-04-15  Andreas Schwab  <schwab@suse.de>
 
 	* nscd/nscd.c (main): Don't fork again after closing files.
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 3e794d7..bd0925b 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -121,10 +121,10 @@ run-bench = $(test-wrapper-env) \
 	    $($*-ENV) $(rtld-prefix) $${run}
 
 bench: $(binaries-bench)
-	for run in $^; do \
-	  echo "Running $${run}"; \
-	  $(run-bench) >>  $(objpfx)bench.out-tmp; \
-	done; \
+	{ for run in $^; do \
+	  echo "Running $${run}" >&2; \
+	  $(run-bench); \
+	done; } > $(objpfx)bench.out-tmp; \
 	if [ -f $(objpfx)bench.out ]; then \
 	  mv -f $(objpfx)bench.out $(objpfx)bench.out.old; \
 	fi; \

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    5 +++++
 benchtests/Makefile |    8 ++++----
 2 files changed, 9 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]