aboutsummaryrefslogtreecommitdiff
path: root/benchtests
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2017-08-08 00:56:10 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2017-08-08 00:56:10 +0530
commitdd3e86ad7cf5ea1b5a42b7962732f98882c63ff8 (patch)
tree722dd26eea92748add30e6580c33327a5a298f9a /benchtests
parentb115e819af637101d9d9b0d26c3685b7236d3fb1 (diff)
downloadglibc-dd3e86ad7cf5ea1b5a42b7962732f98882c63ff8.zip
glibc-dd3e86ad7cf5ea1b5a42b7962732f98882c63ff8.tar.gz
glibc-dd3e86ad7cf5ea1b5a42b7962732f98882c63ff8.tar.bz2
benchtests: Avoid a display error when running in text terminal
The compare_strings.py script generates a graph for the benchmarks it performs a comparison on and that fails if X is not available. Avoid the error and ensure that only the graph is generated and saved as a PNG file. * benchtests/scripts/compare_strings.py: Avoid display error when generating graph.
Diffstat (limited to 'benchtests')
-rwxr-xr-xbenchtests/scripts/compare_strings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchtests/scripts/compare_strings.py b/benchtests/scripts/compare_strings.py
index 43e70eb..b3c57e2 100755
--- a/benchtests/scripts/compare_strings.py
+++ b/benchtests/scripts/compare_strings.py
@@ -21,6 +21,8 @@ Given a string benchmark result file, print a table with comparisons with a
baseline. The baseline is the first function, which typically is the builtin
function.
"""
+import matplotlib as mpl
+mpl.use('Agg')
import sys
import os