aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-11-07 15:18:33 -0800
committerChristopher Ferris <cferris@google.com>2017-11-07 15:18:33 -0800
commitad05730143cc2dbd38df869431a0ee461495fce3 (patch)
tree8aae8f6523dbd842a89bbcd86eafc99428597b31 /benchmarks
parent8574a1f63082240c92945cff15fba785a5a857e7 (diff)
downloadandroid_bionic-ad05730143cc2dbd38df869431a0ee461495fce3.tar.gz
android_bionic-ad05730143cc2dbd38df869431a0ee461495fce3.tar.bz2
android_bionic-ad05730143cc2dbd38df869431a0ee461495fce3.zip
Fix bionic benchmark unit tests.
Test: Ran unit tests. Change-Id: I729572b101c7011cde5e7da4a72af7ede719b76b
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/tests/interface_test.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/benchmarks/tests/interface_test.cpp b/benchmarks/tests/interface_test.cpp
index b8279b636..698732022 100644
--- a/benchmarks/tests/interface_test.cpp
+++ b/benchmarks/tests/interface_test.cpp
@@ -71,7 +71,8 @@ static void GetExe(std::string* exe_name) {
char path[PATH_MAX];
ssize_t path_len = readlink("/proc/self/exe", path, sizeof(path));
ASSERT_TRUE(path_len >= 0);
- *exe_name = std::string(std::regex_replace(path, std::regex("-tests"), ""));
+ *exe_name = std::string(std::regex_replace(path, std::regex("nativetest"), "benchmarktest"));
+ *exe_name = std::regex_replace(*exe_name, std::regex("-tests"), "");
}
void SystemTests::Exec(std::vector<const char*> args) {
@@ -289,6 +290,10 @@ TEST_F(SystemTests, full_suite) {
"BM_stdio_fopen_fgetc_fclose_no_locking/1024/iterations:1\n"
"BM_stdio_fopen_getline_fclose_locking/iterations:1\n"
"BM_stdio_fopen_getline_fclose_no_locking/iterations:1\n"
+ "BM_stdio_printf_literal/iterations:1\n"
+ "BM_stdio_printf_s/iterations:1\n"
+ "BM_stdio_printf_d/iterations:1\n"
+ "BM_stdio_printf_1$s/iterations:1\n"
"BM_string_memcmp/8/0/0/iterations:1\n"
"BM_string_memcmp/64/0/0/iterations:1\n"
"BM_string_memcmp/512/0/0/iterations:1\n"