You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/07/11 11:25:35 UTC
[02/14] lucy-clownfish git commit: Disable a test in TestClass
Disable a test in TestClass
Ivars offsets aren't visible from a separate test binary.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/24fb4d90
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/24fb4d90
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/24fb4d90
Branch: refs/heads/master
Commit: 24fb4d901a56a59913c9ff5a5e67840540215a48
Parents: 83c9045
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Fri Jul 8 13:57:23 2016 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Fri Jul 8 14:25:36 2016 +0200
----------------------------------------------------------------------
runtime/test/Clownfish/Test/TestClass.c | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/24fb4d90/runtime/test/Clownfish/Test/TestClass.c
----------------------------------------------------------------------
diff --git a/runtime/test/Clownfish/Test/TestClass.c b/runtime/test/Clownfish/Test/TestClass.c
index a6646f8..b467cd5 100644
--- a/runtime/test/Clownfish/Test/TestClass.c
+++ b/runtime/test/Clownfish/Test/TestClass.c
@@ -59,7 +59,9 @@ static void
test_bootstrap_idempotence(TestBatchRunner *runner) {
Class *bool_class = BOOLEAN;
uint32_t bool_class_size = BOOLEAN->class_alloc_size;
+#if 0
uint32_t bool_ivars_offset = cfish_Bool_IVARS_OFFSET;
+#endif
Boolean *true_singleton = Bool_true_singleton;
char *bool_class_contents = (char*)MALLOCATE(bool_class_size);
@@ -80,8 +82,12 @@ test_bootstrap_idempotence(TestBatchRunner *runner) {
TEST_TRUE(runner,
memcmp(bool_class_contents, BOOLEAN, bool_class_size) == 0,
"Boolean class unchanged");
+#if 0
TEST_TRUE(runner, bool_ivars_offset == cfish_Bool_IVARS_OFFSET,
"Boolean ivars offset unchanged");
+#else
+ SKIP(runner, 1, "TODO: Make ivars offset accessible somehow?");
+#endif
TEST_TRUE(runner, true_singleton == Bool_true_singleton,
"Boolean singleton unchanged");