diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-03 21:01:31 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-03 21:01:31 (GMT) |
commit | 42c68869ca5af9ace61b1a28ec04c5981e82dcd0 (patch) | |
tree | d23d5fe408d59615fc9282d5ed87f206a6a159d8 /generic | |
parent | e2532e668c6fa0acfe8a26c27b75d1d068e862a5 (diff) | |
parent | 158419edc08948e941e2f0303a154840978669eb (diff) | |
download | tcl-42c68869ca5af9ace61b1a28ec04c5981e82dcd0.zip tcl-42c68869ca5af9ace61b1a28ec04c5981e82dcd0.tar.gz tcl-42c68869ca5af9ace61b1a28ec04c5981e82dcd0.tar.bz2 |
don't try to run the cpuid test when cpuid is not available
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclTest.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index 4a9f85f..ab0c6cb 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -444,9 +444,11 @@ static int TestNumUtfCharsCmd(ClientData clientData, static int TestHashSystemHashCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); +#if defined(HAVE_CPUID) || defined(__WIN32__) static int TestcpuidCmd (ClientData dummy, Tcl_Interp* interp, int objc, Tcl_Obj *CONST objv[]); +#endif static Tcl_Filesystem testReportingFilesystem = { "reporting", @@ -710,8 +712,10 @@ Tcltest_Init( (ClientData) NULL, NULL); Tcl_CreateCommand(interp, "testexitmainloop", TestexitmainloopCmd, (ClientData) NULL, NULL); +#if defined(HAVE_CPUID) || defined(__WIN32__) Tcl_CreateObjCommand(interp, "testcpuid", TestcpuidCmd, (ClientData) 0, NULL); +#endif t3ArgTypes[0] = TCL_EITHER; t3ArgTypes[1] = TCL_EITHER; Tcl_CreateMathFunc(interp, "T3", 2, t3ArgTypes, TestMathFunc2, @@ -7109,6 +7113,7 @@ TestNumUtfCharsCmd( return TCL_OK; } +#if defined(HAVE_CPUID) || defined(__WIN32__) /* *---------------------------------------------------------------------- * @@ -7162,6 +7167,7 @@ TestcpuidCmd( Tcl_SetObjResult(interp, Tcl_NewListObj(4, regsObjs)); return TCL_OK; } +#endif /* * Used to do basic checks of the TCL_HASH_KEY_SYSTEM_HASH flag |