summaryrefslogtreecommitdiffstats
path: root/test/Decider/MD5-winonly-fixture
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-04-02 13:43:49 (GMT)
committerMats Wichmann <mats@linux.com>2021-04-14 21:32:13 (GMT)
commitb6e861cc465680f4c1ae5ec3327504da9afd5730 (patch)
tree48ff81509abb6be7270e6c45cf2286338043ace8 /test/Decider/MD5-winonly-fixture
parenta20701025fa9f7901396b7d148c5069e86e16944 (diff)
downloadSCons-b6e861cc465680f4c1ae5ec3327504da9afd5730.zip
SCons-b6e861cc465680f4c1ae5ec3327504da9afd5730.tar.gz
SCons-b6e861cc465680f4c1ae5ec3327504da9afd5730.tar.bz2
Test tweaks to help testing on mingw-only win32 systems
On a system where SCons is started from the mingw bash shell, and mingw Python is the interpreter, the secondary self-identification differs. Use that in a few tests which otherwise make the wrong decision. EnvironmentTests used an invalid value for CCFLAGS, and empty string is a better choice. Change a couple of cases where Python code was run directly so it's prefixed by the-Python-in-use, which fails if there is not a Windows-registered program for .py files - we didn't really want to use the Windows-native Python anyway. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/Decider/MD5-winonly-fixture')
-rw-r--r--test/Decider/MD5-winonly-fixture/test_parse.y8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Decider/MD5-winonly-fixture/test_parse.y b/test/Decider/MD5-winonly-fixture/test_parse.y
index 3ead9d2..2172298 100644
--- a/test/Decider/MD5-winonly-fixture/test_parse.y
+++ b/test/Decider/MD5-winonly-fixture/test_parse.y
@@ -1,6 +1,9 @@
%{
#include<stdio.h>
+int yyerror(char *s);
+int yylex();
+
int regs[26];
int base;
@@ -25,11 +28,13 @@ digit: DIGIT;
%%
+int
main()
{
return(yyparse());
}
+int
yyerror(s)
char *s;
{
@@ -37,7 +42,8 @@ char *s;
return(0);
}
+int
yywrap()
{
return(1);
-} \ No newline at end of file
+}