Author: Wim Lavrijsen <wlavrij...@lbl.gov> Branch: reflex-support Changeset: r45188:06202ffd1864 Date: 2011-06-27 17:54 -0700 http://bitbucket.org/pypy/pypy/changeset/06202ffd1864/
Log: test fixes diff --git a/pypy/module/cppyy/test/example01.cxx b/pypy/module/cppyy/test/example01.cxx --- a/pypy/module/cppyy/test/example01.cxx +++ b/pypy/module/cppyy/test/example01.cxx @@ -48,7 +48,7 @@ return ::atoi(str); } char* example01::staticStrcpy(const char* strin) { - char* strout = (char*)malloc(::strlen(strin + 1)); + char* strout = (char*)malloc(::strlen(strin)+1); ::strcpy(strout, strin); return strout; } diff --git a/pypy/module/cppyy/test/test_stltypes.py b/pypy/module/cppyy/test/test_stltypes.py --- a/pypy/module/cppyy/test/test_stltypes.py +++ b/pypy/module/cppyy/test/test_stltypes.py @@ -25,7 +25,7 @@ return cppyy.load_lib(%r)""" % (shared_lib, )) def test1BuiltinTypeVectorType( self ): - """Test access to a vector<int>""" + """Test access to an std::vector<int>""" import cppyy @@ -39,6 +39,7 @@ assert tv1 is tv2 + #----- v = tv1() for i in range(self.N): v.push_back(i) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit