|
From: <got...@us...> - 2009-09-20 16:08:47
|
Revision: 346
http://scstudio.svn.sourceforge.net/scstudio/?rev=346&view=rev
Author: gotthardp
Date: 2009-09-20 16:08:35 +0000 (Sun, 20 Sep 2009)
Log Message:
-----------
Fixed EOL problems of z120 parser testing.
Fixed additional file properties.
Modified Paths:
--------------
trunk/tests/z120_test/z120_diff.py
Property Changed:
----------------
trunk/src/check/boundedness/
trunk/src/check/localchoice/
trunk/src/check/structure/
trunk/src/check/time/
Property changes on: trunk/src/check/boundedness
___________________________________________________________________
Added: svn:ignore
+ CMakeFiles
cmake_install.cmake
CTestTestfile.cmake
*.dir
Makefile
*.vcproj
Property changes on: trunk/src/check/localchoice
___________________________________________________________________
Added: svn:ignore
+ CMakeFiles
cmake_install.cmake
CTestTestfile.cmake
*.dir
Makefile
*.vcproj
Property changes on: trunk/src/check/structure
___________________________________________________________________
Added: svn:ignore
+ CMakeFiles
cmake_install.cmake
CTestTestfile.cmake
*.dir
Makefile
*.vcproj
Property changes on: trunk/src/check/time
___________________________________________________________________
Added: svn:ignore
+ CMakeFiles
cmake_install.cmake
CTestTestfile.cmake
*.dir
Makefile
*.vcproj
Modified: trunk/tests/z120_test/z120_diff.py
===================================================================
--- trunk/tests/z120_test/z120_diff.py 2009-09-20 15:33:38 UTC (rev 345)
+++ trunk/tests/z120_test/z120_diff.py 2009-09-20 16:08:35 UTC (rev 346)
@@ -3,14 +3,14 @@
import difflib
import sys
-p = subprocess.Popen([sys.argv[1], sys.argv[2], sys.argv[3]], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+p = subprocess.Popen([sys.argv[1], sys.argv[2], sys.argv[3]], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
if int(sys.argv[3]) == 0:
exit = p.wait()
sys.exit(exit)
else:
- f = open(sys.argv[2] + ".result", "r+")
+ f = open(sys.argv[2] + ".result", "rt")
result = difflib.unified_diff(f.readlines(), p.stderr.readlines()+ p.stdout.readlines())
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|