summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-07-27 14:37:12 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-07-27 14:37:12 (GMT)
commit1756aa5780571879ffbc2f77c2ae04cc1953002b (patch)
tree2c0286ae08fc040f325aa67b53146ecca2a2207b /Tests
parentdbbe605e74981331368e171f87bbd0837aaceeb2 (diff)
downloadCMake-1756aa5780571879ffbc2f77c2ae04cc1953002b.zip
CMake-1756aa5780571879ffbc2f77c2ae04cc1953002b.tar.gz
CMake-1756aa5780571879ffbc2f77c2ae04cc1953002b.tar.bz2
ENH: move changes from main tree to branch
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LoadCommand/CMakeCommands/cmTestCommand.c2
-rw-r--r--Tests/LoadCommand/LoadedCommand.cxx41
-rw-r--r--Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c2
-rw-r--r--Tests/LoadCommandOneConfig/LoadedCommand.cxx41
4 files changed, 2 insertions, 84 deletions
diff --git a/Tests/LoadCommand/CMakeCommands/cmTestCommand.c b/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
index 84d1619..36bf33b 100644
--- a/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
+++ b/Tests/LoadCommand/CMakeCommands/cmTestCommand.c
@@ -166,7 +166,7 @@ static int CCONV InitialPass(void *inf, void *mf, int argc, char *argv[])
}
info->CAPI->ExecuteCommand(mf,"SET",2,args);
- // make sure we can find the source file
+ /* make sure we can find the source file */
if (!info->CAPI->GetSource(mf,argv[1]))
{
info->CAPI->SetError(mf, "Source file could not be found!");
diff --git a/Tests/LoadCommand/LoadedCommand.cxx b/Tests/LoadCommand/LoadedCommand.cxx
deleted file mode 100644
index c58bcf1..0000000
--- a/Tests/LoadCommand/LoadedCommand.cxx
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "LoadedCommand.h"
-#include <stdio.h>
-
-int testSizeOf(int s1, int s2)
-{
- return s1 - s2;
-}
-
-int main ()
-{
- int ret = 0;
-#ifdef HAVE_VSBLABLA
- printf("Should not be able to find vsblabla\n");
- ret = 1;
-#endif
-
-#if !defined( HAVE_PRINTF )
- printf("Should be able to find printf\n");
- ret= 1;
-#endif
-
-#if !defined( ADDED_DEFINITION )
- printf("Should have ADDED_DEFINITION defined\n");
- ret= 1;
-#endif
-#if !defined(CMAKE_IS_FUN)
- printf("Loaded Command was not built with CMAKE_IS_FUN: failed.\n");
- ret = 1;
-#endif
- if(testSizeOf(SIZEOF_CHAR, sizeof(char)))
- {
- printf("Size of char is broken.\n");
- ret = 1;
- }
- if(testSizeOf(SIZEOF_SHORT, sizeof(short)))
- {
- printf("Size of short is broken.\n");
- ret = 1;
- }
- return ret;
-}
diff --git a/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c b/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
index 84d1619..36bf33b 100644
--- a/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
+++ b/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
@@ -166,7 +166,7 @@ static int CCONV InitialPass(void *inf, void *mf, int argc, char *argv[])
}
info->CAPI->ExecuteCommand(mf,"SET",2,args);
- // make sure we can find the source file
+ /* make sure we can find the source file */
if (!info->CAPI->GetSource(mf,argv[1]))
{
info->CAPI->SetError(mf, "Source file could not be found!");
diff --git a/Tests/LoadCommandOneConfig/LoadedCommand.cxx b/Tests/LoadCommandOneConfig/LoadedCommand.cxx
deleted file mode 100644
index c58bcf1..0000000
--- a/Tests/LoadCommandOneConfig/LoadedCommand.cxx
+++ /dev/null
@@ -1,41 +0,0 @@
-#include "LoadedCommand.h"
-#include <stdio.h>
-
-int testSizeOf(int s1, int s2)
-{
- return s1 - s2;
-}
-
-int main ()
-{
- int ret = 0;
-#ifdef HAVE_VSBLABLA
- printf("Should not be able to find vsblabla\n");
- ret = 1;
-#endif
-
-#if !defined( HAVE_PRINTF )
- printf("Should be able to find printf\n");
- ret= 1;
-#endif
-
-#if !defined( ADDED_DEFINITION )
- printf("Should have ADDED_DEFINITION defined\n");
- ret= 1;
-#endif
-#if !defined(CMAKE_IS_FUN)
- printf("Loaded Command was not built with CMAKE_IS_FUN: failed.\n");
- ret = 1;
-#endif
- if(testSizeOf(SIZEOF_CHAR, sizeof(char)))
- {
- printf("Size of char is broken.\n");
- ret = 1;
- }
- if(testSizeOf(SIZEOF_SHORT, sizeof(short)))
- {
- printf("Size of short is broken.\n");
- ret = 1;
- }
- return ret;
-}