Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

output test results

  • Loading branch information...
commit eea1a063cc659a66f22d864b829df7923539b7e9 1 parent 03c0221
@kazuho authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 t/gc_in_ctor.cpp
View
4 t/gc_in_ctor.cpp
@@ -15,6 +15,7 @@ struct Linked : public picogc::gc_object {
picogc::member<Linked> linked_;
Linked() : super() {
gc->trigger_gc();
+ is(last_stats.collected, 0UL);
if (num_created++ == 0)
linked_ = new Linked;
}
@@ -29,14 +30,13 @@ struct Linked : public picogc::gc_object {
struct Emitter : public picogc::gc_emitter {
virtual void gc_end(picogc::gc*, const picogc::gc_stats& stats) {
- printf("%d\n", (int)stats.collected);
last_stats = stats;
}
};
void test()
{
- plan(0);
+ plan(2);
gc = new picogc::gc();
gc->emitter(new Emitter());
Please sign in to comment.
Something went wrong with that request. Please try again.