]> git.ipfire.org Git - thirdparty/glibc.git/commit
benchtest: Correct shell script related to bench-malloc-thread
authorCupertino Miranda <cupertino.miranda@oracle.com>
Fri, 25 Apr 2025 14:38:25 +0000 (16:38 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 25 Apr 2025 14:38:25 +0000 (16:38 +0200)
commit77930e0447e0b37a129db0e13c6c6f5e60a3019e
tree7dbe9bedf0d6be3de89538036f1089c5bd1e817e
parente04afb71771710cdc6025fe95908f5f17de7b72d
benchtest: Correct shell script related to bench-malloc-thread

This patch changes the shell script that selects which arguments are used
for the execution of bench-malloc-thread.
The problem seems to have been introduced in commit:

  commit 2d6427a63cad8056ba6bcaaaa8df21977c8dde3d
  Author: Wangyang Guo <wangyang.guo@intel.com>
  Date:   Fri Nov 29 16:05:35 2024 +0800
  benchtests: Add calloc test

With current condition, the following error "/bin/sh: 3: [[: not found"
occurs when executing `make bench BENCHSET="malloc-thread"` and the else
path is taken, using incorrect arguments for bench test execution.

Error is reproducible in Debian based distros.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
benchtests/Makefile