summaryrefslogtreecommitdiffstats
path: root/Tests/BuildDepends/Project
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/BuildDepends/Project')
-rw-r--r--Tests/BuildDepends/Project/bar.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tests/BuildDepends/Project/bar.cxx b/Tests/BuildDepends/Project/bar.cxx
index 76e934f..25d8bd2 100644
--- a/Tests/BuildDepends/Project/bar.cxx
+++ b/Tests/BuildDepends/Project/bar.cxx
@@ -3,7 +3,7 @@
#include <regen.h>
#include <noregen.h>
-int main()
+int main(int argc, char** argv)
{
/* Make sure the noregen header was not regenerated. */
if(strcmp("foo", noregen_string) != 0)
@@ -15,6 +15,11 @@ int main()
/* Print out the string that should have been regenerated. */
printf("%s\n", regen_string);
fflush(stdout);
- for(;;);
+ // if any argument is used, wait forever
+ if (argc>1)
+ {
+ // wait that we get killed...
+ for(;;);
+ }
return 0;
}