From: stevenknight Date: Thu, 20 Sep 2001 19:12:42 +0000 (+0000) Subject: Add dummy C code to use argc and argv in tests. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f9cb0e157b5a47c90a1050820c80256a4963018;p=scons.git Add dummy C code to use argc and argv in tests. git-svn-id: http://scons.tigris.org/svn/scons/trunk@62 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/test/Default.py b/test/Default.py index 0666a770..916ad24a 100644 --- a/test/Default.py +++ b/test/Default.py @@ -39,6 +39,7 @@ for dir in ['one', 'two', 'three']: int main(int argc, char *argv[]) { + argv[argc++] = "--"; printf("%s\n"); exit (0); } @@ -48,6 +49,7 @@ main(int argc, char *argv[]) int main(int argc, char *argv[]) { + argv[argc++] = "--"; printf("%s\n"); exit (0); } diff --git a/test/Program-j.py b/test/Program-j.py index 41d32cba..57b0d671 100644 --- a/test/Program-j.py +++ b/test/Program-j.py @@ -18,6 +18,7 @@ test.write('f1.c', """ int main(int argc, char *argv[]) { + argv[argc++] = "--"; printf(\"f1.c\n\"); exit (0); } @@ -27,6 +28,7 @@ test.write('f2.c', """ int main(int argc, char *argv[]) { + argv[argc++] = "--"; printf(\"f2.c\n\"); exit (0); } @@ -37,6 +39,7 @@ test.write('f3.c', """ int main(int argc, char *argv[]) { + argv[argc++] = "--"; printf(\"f3.c\n\"); exit (0); } @@ -46,6 +49,7 @@ test.write('f4.c', """ int main(int argc, char *argv[]) { + argv[argc++] = "--"; printf(\"f4.c\n\"); exit (0); } diff --git a/test/Program.py b/test/Program.py index 06562dc6..a2b0e4b3 100644 --- a/test/Program.py +++ b/test/Program.py @@ -15,6 +15,7 @@ test.write('foo.c', """ int main(int argc, char *argv[]) { + argv[argc++] = "--"; printf("foo.c\n"); exit (0); }