summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testSystemInformation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-08-07 12:18:32 (GMT)
committerBrad King <brad.king@kitware.com>2013-08-07 12:18:32 (GMT)
commit09b147b3a7c864c3d9c044d970235a49f3d69b7a (patch)
treed8381f3dd2fe35ba7622e007ee951062d4bcee32 /Source/kwsys/testSystemInformation.cxx
parent726fa61b59c20ea657091fa870bf7eba77dfaa75 (diff)
parentce6eac8b58b0230cd1d8ee100a27973e5354a5c4 (diff)
downloadCMake-09b147b3a7c864c3d9c044d970235a49f3d69b7a.zip
CMake-09b147b3a7c864c3d9c044d970235a49f3d69b7a.tar.gz
CMake-09b147b3a7c864c3d9c044d970235a49f3d69b7a.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/testSystemInformation.cxx')
-rw-r--r--Source/kwsys/testSystemInformation.cxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/Source/kwsys/testSystemInformation.cxx b/Source/kwsys/testSystemInformation.cxx
index 738043f..53d51ac 100644
--- a/Source/kwsys/testSystemInformation.cxx
+++ b/Source/kwsys/testSystemInformation.cxx
@@ -95,7 +95,24 @@ int testSystemInformation(int, char*[])
kwsys_ios::cout << "CPU feature " << i << "\n";
}
}
- //int GetProcessorCacheXSize(long int);
-// bool DoesCPUSupportFeature(long int);
+
+ /* test stack trace
+ */
+ kwsys_ios::cout
+ << "Program Stack:" << kwsys_ios::endl
+ << kwsys::SystemInformation::GetProgramStack(0,0) << kwsys_ios::endl
+ << kwsys_ios::endl;
+
+ /* test segv handler
+ info.SetStackTraceOnError(1);
+ double *d = (double*)100;
+ *d=0;
+ */
+
+ /* test abort handler
+ info.SetStackTraceOnError(1);
+ abort();
+ */
+
return 0;
}