summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testSystemInformation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-01-08 13:42:58 (GMT)
committerBrad King <brad.king@kitware.com>2013-01-08 13:42:58 (GMT)
commit6f6afbd69f6ff30ec545ac8bea2ffd99d8cd48fc (patch)
tree00852b14697e747154c79003c49ab759e8e3b085 /Source/kwsys/testSystemInformation.cxx
parentc7550d5ef12d8185fad93d581ebd52474ae3d1b0 (diff)
parent495fa24d70ce4c5b594e15cae464af243a127fb8 (diff)
downloadCMake-6f6afbd69f6ff30ec545ac8bea2ffd99d8cd48fc.zip
CMake-6f6afbd69f6ff30ec545ac8bea2ffd99d8cd48fc.tar.gz
CMake-6f6afbd69f6ff30ec545ac8bea2ffd99d8cd48fc.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/testSystemInformation.cxx')
-rw-r--r--Source/kwsys/testSystemInformation.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/kwsys/testSystemInformation.cxx b/Source/kwsys/testSystemInformation.cxx
index cfd7ce2..49a686c 100644
--- a/Source/kwsys/testSystemInformation.cxx
+++ b/Source/kwsys/testSystemInformation.cxx
@@ -47,6 +47,8 @@
int testSystemInformation(int, char*[])
{
+ kwsys_ios::cout << "CTEST_FULL_OUTPUT\n"; // avoid truncation
+
kwsys::SystemInformation info;
info.RunCPUCheck();
info.RunOSCheck();
@@ -86,6 +88,13 @@ int testSystemInformation(int, char*[])
printMethod3(info, GetHostMemoryUsed(), "KiB");
printMethod3(info, GetProcMemoryUsed(), "KiB");
+ for (int i = 0; i <= 31; i++)
+ {
+ if (info.DoesCPUSupportFeature(1 << i))
+ {
+ kwsys_ios::cout << "CPU feature " << i << "\n";
+ }
+ }
//int GetProcessorCacheXSize(long int);
// bool DoesCPUSupportFeature(long int);
return 0;