[pypy-commit] stmgc rewind_setjmp: Extra test here

arigo noreply at buildbot.pypy.org
Sat Aug 9 17:29:26 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: rewind_setjmp
Changeset: r1281:289aaa8b6fda
Date: 2014-08-09 17:29 +0200
http://bitbucket.org/pypy/stmgc/changeset/289aaa8b6fda/

Log:	Extra test here

diff --git a/c7/test/test_rewind.c b/c7/test/test_rewind.c
--- a/c7/test/test_rewind.c
+++ b/c7/test/test_rewind.c
@@ -55,6 +55,10 @@
     int expected[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
     CHECK(expected);
 
+    assert(rewind_jmp_armed(&gthread));
+    rewind_jmp_forget(&gthread);
+    assert(!rewind_jmp_armed(&gthread));
+
     rewind_jmp_leaveframe(&gthread, &buf);
 }
 


More information about the pypy-commit mailing list