[m-rev.] diff: fix test case failure in C# grade

Julien Fischer jfischer at opturion.com
Fri Jul 4 10:47:03 AEST 2014


Branches 14.01, master
---------------------

Fix a test case failure in the C# grade.

Avoid some warnings during runtests.

tests/hard_coded/write.exp3:
 	Update this expected output.

tests/hard_coded/hash_bug.m:
 	Do not call an obsolete function.

tests/hard_coded/Mercury.options:
 	Do not warn about unresolved polymorphism in a test.

Julien.

diff --git a/tests/hard_coded/Mercury.options b/tests/hard_coded/Mercury.options
index f478462..962957b 100644
--- a/tests/hard_coded/Mercury.options
+++ b/tests/hard_coded/Mercury.options
@@ -77,6 +77,7 @@ MCFLAGS-type_info_const_inst	= --const-struct --optimise-constant-propagation
  MCFLAGS-uncond_reuse	    =	--ctgc
  MCFLAGS-uncond_reuse_bad    =	--ctgc
  MCFLAGS-uo_regression1      =	--from-ground-term-threshold=4
+MCFLAGS-write               =	--no-warn-unresolved-polymorphism

  # We disable intermodule-optimization here because it isn't compatible with
  # intermodule-analysis.
diff --git a/tests/hard_coded/hash_bug.m b/tests/hard_coded/hash_bug.m
index 1e1eb75..ec91c84 100644
--- a/tests/hard_coded/hash_bug.m
+++ b/tests/hard_coded/hash_bug.m
@@ -16,7 +16,7 @@ main(!IO) :-
  		sym_name_to_string(Name, ".", Str),
  		Hash = hash(Str)
  	),
-	HT0 = new(HashPred, 10, 0.8),
+	HT0 = init(HashPred, 10, 0.8),
  	build_table(entries, HT0, HT),
  	(
  		hash_table__search(HT,
diff --git a/tests/hard_coded/write.exp3 b/tests/hard_coded/write.exp3
index 8f0fa6b..94f5557 100644
--- a/tests/hard_coded/write.exp3
+++ b/tests/hard_coded/write.exp3
@@ -45,4 +45,5 @@ var_supply(1)
  empty
  qwerty(4)
  array([1, 2, 3, 4])
+version_array([1, 2, 3, 4])




More information about the reviews mailing list