OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-cogserver commits / 9c4b4a0

Add debug prints for guix
9c4b4a037f79373158d548946aea0d38f9385056
by Linas Vepštas <linasvepstas@gmail.com> · 2025-12-17T05:20:37.000Z

Changed files (1) +4 -0

tests/shell/JsonShellUTest.cxxtest +4 -0
……@@ -144,6 +144,7 @@ public:
144144 std::string result = json_cmd_exec(
145145 "echo 'json\\nAtomSpace.haveNode(\"Concept\", \"test-concept-json\")\\n' | nc -q 1 localhost 17335");
146146
147 printf("Do we have the node? result=>>>%s<<<\n", result.c_str());
147148 // Should return "true"
148149 TS_ASSERT(result.find("true") != std::string::npos);
149150
……@@ -170,6 +171,7 @@ public:
170171 std::string result = json_cmd_exec(
171172 "echo 'json\\nAtomSpace.getAtoms(\"ConceptNode\")\\n' | nc -q 3 localhost 17335");
172173
174 printf("Did we get the Concepts? result=>>>%s<<<\n", result.c_str());
173175 TS_ASSERT(result.find("json-test-1") != std::string::npos);
174176 TS_ASSERT(result.find("json-test-2") != std::string::npos);
175177
……@@ -185,12 +187,14 @@ public:
185187 std::string result = json_cmd_exec(
186188 "echo 'json\\nAtomSpace.makeAtom({\"type\": \"Concept\", \"name\": \"json-created\"})\\n' | nc -q 3 localhost 17335");
187189
190 printf("Did we make the Concept? result=>>>%s<<<\n", result.c_str());
188191 TS_ASSERT(result.find("true") != std::string::npos);
189192
190193 // Verify the atom was created by checking with haveNode
191194 std::string verify = json_cmd_exec(
192195 "echo 'json\\nAtomSpace.haveNode(\"Concept\", \"json-created\")\\n' | nc -q 3 localhost 17335");
193196
197 printf("Did verification work? verify=>>>%s<<<\n", result.c_str());
194198 TS_ASSERT(verify.find("true") != std::string::npos);
195199
196200 logger().debug("END TEST: %s", __FUNCTION__);