diff options
author | Brad King <brad.king@kitware.com> | 2013-01-08 13:42:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-01-08 13:42:58 (GMT) |
commit | 6f6afbd69f6ff30ec545ac8bea2ffd99d8cd48fc (patch) | |
tree | 00852b14697e747154c79003c49ab759e8e3b085 /Source/kwsys/testSystemInformation.cxx | |
parent | c7550d5ef12d8185fad93d581ebd52474ae3d1b0 (diff) | |
parent | 495fa24d70ce4c5b594e15cae464af243a127fb8 (diff) | |
download | CMake-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.cxx | 9 |
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; |