You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2015/10/06 01:26:02 UTC

[2/4] lucy-clownfish git commit: Stub out some TestUtils funcs under Go.

Stub out some TestUtils funcs under Go.

Create stub implementations for some functions that are required for
running the core tests.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/276f924e
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/276f924e
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/276f924e

Branch: refs/heads/master
Commit: 276f924e76a7d82420637cb5d5476a7a16283a65
Parents: 1697a39
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Wed Sep 30 18:47:02 2015 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Wed Sep 30 18:47:02 2015 -0700

----------------------------------------------------------------------
 runtime/go/ext/testclownfish.c | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/276f924e/runtime/go/ext/testclownfish.c
----------------------------------------------------------------------
diff --git a/runtime/go/ext/testclownfish.c b/runtime/go/ext/testclownfish.c
new file mode 100644
index 0000000..6c9018d
--- /dev/null
+++ b/runtime/go/ext/testclownfish.c
@@ -0,0 +1,35 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#define CFISH_USE_SHORT_NAMES
+
+#include "Clownfish/TestHarness/TestUtils.h"
+
+void*
+TestUtils_clone_host_runtime() {
+    return NULL;
+}
+
+void
+TestUtils_set_host_runtime(void *runtime) {
+    UNUSED_VAR(runtime);
+}
+
+void
+TestUtils_destroy_host_runtime(void *runtime) {
+    UNUSED_VAR(runtime);
+}
+