summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/Executable/A.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-12-23 20:34:19 (GMT)
committerBrad King <brad.king@kitware.com>2011-12-23 21:16:52 (GMT)
commit49d6dd67f1c2b3d21a47c28f6e0908062f300e4f (patch)
treedad5ebfe6b620f4e166eb1d80a971ff616eaa02d /Tests/Complex/Executable/A.cxx
parent76ac88b730f32dcdef80216766b3eaecb6257ed6 (diff)
downloadCMake-49d6dd67f1c2b3d21a47c28f6e0908062f300e4f.zip
CMake-49d6dd67f1c2b3d21a47c28f6e0908062f300e4f.tar.gz
CMake-49d6dd67f1c2b3d21a47c28f6e0908062f300e4f.tar.bz2
complex: Simplify test for single-character exe name
Run the test executable as a custom command instead of depending on cmSystemTools::RunSingleCommand.
Diffstat (limited to 'Tests/Complex/Executable/A.cxx')
-rw-r--r--Tests/Complex/Executable/A.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/Complex/Executable/A.cxx b/Tests/Complex/Executable/A.cxx
index 0cc995a..fb3eb08 100644
--- a/Tests/Complex/Executable/A.cxx
+++ b/Tests/Complex/Executable/A.cxx
@@ -1,7 +1,9 @@
// Include code from a header that should not be compiled separately.
#include "A.hh"
+#include <stdio.h>
int main()
{
- return A();
+ printf("#define A_VALUE %d\n", A());
+ return 0;
}