Changeset 9bb81bb8
- Timestamp:
- Jul 5, 2016, 4:33:58 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 59c24b6
- Parents:
- 159c62e (diff), 39f04ec (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:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/driver/cfa.cc
r159c62e r9bb81bb8 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // cfa.cc -- 7 // cfa.cc -- 8 8 // 9 9 // Author : Peter A. Buhr … … 249 249 nargs += 1; 250 250 251 args[nargs] = "-I" CFA_INCDIR "/containers"; 252 nargs += 1; 253 251 254 if ( link ) { 252 255 // include the cfa library in case it's needed … … 308 311 args[nargs] = "-no-integrated-cpp"; 309 312 nargs += 1; 310 args[nargs] = "-Wno-deprecated"; 313 args[nargs] = "-Wno-deprecated"; 311 314 nargs += 1; 312 315 if ( ! std_flag ) { // default c99, if none specified … … 314 317 nargs += 1; 315 318 } // if 316 args[nargs] = "-fgnu89-inline"; 319 args[nargs] = "-fgnu89-inline"; 317 320 nargs += 1; 318 321 args[nargs] = ( *new string( string("-B") + Bprefix + "/" ) ).c_str(); -
src/tests/test.py
r159c62e r9bb81bb8 9 9 import os 10 10 import re 11 import stat 11 12 import sys 12 13 … … 60 61 return result; 61 62 63 def fileIsExecutable(file) : 64 try : 65 fileinfo = os.stat(file) 66 return bool(fileinfo.st_mode & stat.S_IXUSR) 67 except Exception as inst: 68 print(type(inst)) # the exception instance 69 print(inst.args) # arguments stored in .args 70 print(inst) 71 return False 62 72 63 73 ################################################################################ … … 78 88 stdinput = "< .in/%s.txt" % test if isfile(".in/%s.txt" % test) else "" 79 89 80 # run test 81 sh("./%s %s > %s 2>&1" % (test, stdinput, out_file), dry_run) 90 if fileIsExecutable(test) : 91 # run test 92 sh("./%s %s > %s 2>&1" % (test, stdinput, out_file), dry_run) 93 else : 94 # simply cat the result into the output 95 sh("cat %s > %s" % (test, out_file), dry_run) 82 96 83 97 retcode = 0
Note: See TracChangeset
for help on using the changeset viewer.