- Timestamp:
- Sep 16, 2020, 1:48:17 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 673eb7a
- Parents:
- c402739f (diff), da9a27c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- tests
- Files:
-
- 5 added
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
rc402739f r2724b4e 38 38 # since automake doesn't have support for CFA we have to 39 39 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 40 -fdebug-prefix-map=$(abspath ${abs_srcdir})= \ 41 -fdebug-prefix-map=/tmp= \ 40 42 -g \ 41 43 -Wall \ … … 110 112 % : %.cfa $(CFACCBIN) 111 113 $(CFACOMPILETEST) -c -o $(abspath ${@}).o 112 $(CFACCLOCAL) $( $(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) $(abspath ${@}).o -o $(abspath ${@})114 $(CFACCLOCAL) $(if $(test), 2> $(test), ) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) ${@}.o -o $(abspath ${@}) 113 115 114 116 # implicit rule for c++ test … … 137 139 # CUSTOM TARGET 138 140 #------------------------------------------------------------------------------ 141 # tests that just validate syntax 142 expression : expression.cfa $(CFACCBIN) 143 $(CFACOMPILETEST) -c -fsyntax-only 2> $(abspath ${@}) 144 139 145 # expected failures 140 146 # use custom target since they require a custom define and custom dependencies -
tests/pybin/tools.py
rc402739f r2724b4e 120 120 return None 121 121 122 file = open(file, mode )122 file = open(file, mode, encoding="latin-1") # use latin-1 so all chars mean something. 123 123 exitstack.push(file) 124 124 return file -
tests/test.py
rc402739f r2724b4e 207 207 else: 208 208 if os.stat(out_file).st_size < 1048576: 209 with open (out_file, "r" ) as myfile:209 with open (out_file, "r", encoding='latin-1') as myfile: # use latin-1 so all chars mean something. 210 210 error = myfile.read() 211 211 else:
Note:
See TracChangeset
for help on using the changeset viewer.