From 1bcab1377de6afe8c0f9c895cdba04baacf3e4a5 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 22 Dec 2011 11:37:01 -0800 Subject: Sync with internal Google development. This breaks the open-source build, will follow up with a change to fix it. --- tests/tests.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests/tests.c') diff --git a/tests/tests.c b/tests/tests.c index 83fb3ef..12ff4bb 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -39,9 +39,13 @@ static void test_upb_jit() { upb_handlers *h = upb_handlers_new(); upb_handlerset hset = {NULL, NULL, &upb_test_onvalue, NULL, NULL, NULL, NULL}; upb_handlers_reghandlerset(h, upb_downcast_msgdef_const(def), &hset); - upb_decoder d; - upb_decoder_init(&d, h); - upb_decoder_uninit(&d); + upb_decoderplan *p = upb_decoderplan_new(h, true); +#ifdef UPB_USE_JIT_X64 + ASSERT(upb_decoderplan_hasjitcode(p)); +#else + ASSERT(!upb_decoderplan_hasjitcode(p)); +#endif + upb_decoderplan_unref(p); upb_symtab_unref(s); upb_def_unref(def); upb_handlers_unref(h); -- cgit v1.2.3