[pypy-svn] pypy jit-lsprofile: (fijal, alex): fix tests and translation (sort of)

alex_gaynor commits-noreply at bitbucket.org
Mon Mar 14 01:58:49 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: jit-lsprofile
Changeset: r42585:0263e80bf9e8
Date: 2011-03-13 20:40 -0400
http://bitbucket.org/pypy/pypy/changeset/0263e80bf9e8/

Log:	(fijal, alex): fix tests and translation (sort of)

diff --git a/pypy/translator/c/src/timer.h b/pypy/translator/c/src/timer.h
--- a/pypy/translator/c/src/timer.h
+++ b/pypy/translator/c/src/timer.h
@@ -3,12 +3,11 @@
 
 /* XXX Some overlap with the stuff in debug_print
  */
+#define OP_LL_READ_TIMESTAMP(v) v = pypy_read_timestamp();
 
 #ifndef PYPY_NOT_MAIN_FILE
 /* implementations */
 
-#define OP_LL_READ_TIMESTAMP(v) v = pypy_read_timestamp();
-
 #ifdef _WIN32
 long long pypy_read_timestamp(void) {
     long long timestamp;

diff --git a/pypy/module/_lsprof/test/test_cprofile.py b/pypy/module/_lsprof/test/test_cprofile.py
--- a/pypy/module/_lsprof/test/test_cprofile.py
+++ b/pypy/module/_lsprof/test/test_cprofile.py
@@ -102,7 +102,7 @@
         f()
         profiler.disable()
         stats = profiler.getstats()
-        xxx
+        assert stats
 
     def test_cprofile(self):
         import sys, os


More information about the Pypy-commit mailing list