[beast/devel: 19/26] TESTS: use new Rapicorn::cpu_info()



commit 38582b0062a83290b8ffab347c1a5fa7d19e2f5b
Author: Tim Janik <timj gnu org>
Date:   Sun Oct 12 05:30:56 2014 +0200

    TESTS: use new Rapicorn::cpu_info()

 tests/testresamplerq.cc |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/testresamplerq.cc b/tests/testresamplerq.cc
index 31ddbf1..420e62a 100644
--- a/tests/testresamplerq.cc
+++ b/tests/testresamplerq.cc
@@ -220,8 +220,9 @@ main (int argc, char **argv)
 {
   // usually we'd call bse_init_test() here, but we have tests to rnu before plugins are loaded
   Rapicorn::init_core_test (RAPICORN_PRETTY_FILE, &argc, argv);
-  Bse::CPUInfo ci = Rapicorn::cpu_info(); // usually done by bse_init_test
-  TMSG ("  NOTE   Running on: %s+%s", ci.machine, bse_block_impl_name());
+  Rapicorn::StringVector sv = Rapicorn::string_split (Rapicorn::cpu_info(), " ");
+  Rapicorn::String machine = sv.size() >= 2 ? sv[1] : "Unknown";
+  TMSG ("  NOTE   Running on: %s+%s", machine.c_str(), bse_block_impl_name()); // usually done by 
bse_init_test
 
   if (argc > 1)
     {


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