瀏覽代碼

Temporarily disable W3C tests.

Stefano Cossu 5 天之前
父節點
當前提交
391702503a
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 1 1
      src/graph.c
  2. 6 2
      test/test_codec_ttl.c

+ 1 - 1
src/graph.c

@@ -634,7 +634,7 @@ LSUP_graph_print (LSUP_Graph *gr)
     LSUP_Triple *spo = NULL;
     ct = 0;
     LSUP_rc rc = LSUP_NORESULT;
-    while (rc = LSUP_graph_iter_next (it, &spo) == LSUP_OK) {
+    while ((rc = LSUP_graph_iter_next (it, &spo)) == LSUP_OK) {
         printf (
                 "#%-6zu  {%s  %s  %s}\n",
                 ct, spo->s->data, spo->p->data, spo->o->data);

+ 6 - 2
test/test_codec_ttl.c

@@ -68,7 +68,9 @@ test_w3c_pos()
         sprintf (test_fname, "test/assets/ttl/test-%02d.ttl", i);
         sprintf (out_fname, "test/assets/ttl/test-%02d.out", i);
         FILE *test_stream = fopen (test_fname, "r");
+        ASSERT (test_stream != NULL, "Error reading TTL evaluation file!");
         FILE *out_stream = fopen (out_fname, "r");
+        ASSERT (out_stream != NULL, "Error reading TTL output file!");
         log_info ("Testing %s", test_fname);
 
         while ((ch=fgetc (out_stream)) != EOF) {
@@ -122,8 +124,10 @@ int codec_ttl_tests()
     RUN (test_encode_ttl_graph);
     RUN (test_decode_nt_graph);
     RUN (test_decode_nt_bad_graph);
-    RUN (test_w3c_pos);
-    RUN (test_w3c_neg);
+    // TODO temporarily disabled; full W3C test suite at
+    // https://w3c.github.io/rdf-tests/rdf/ shall replace these.
+    //RUN (test_w3c_pos);
+    //RUN (test_w3c_neg);
 
     free_terms(terms);
     for (int i = 0; i < TRP_CT; i++)