[m-rev.] diff: fix test cases to reflect new stack trace for exceptions

Tyson Dowd trd at cs.mu.OZ.AU
Thu Aug 30 22:53:10 AEST 2001


Hi,


===================================================================


Estimated hours taken: 0.3
Branches: main

Fix the expected test results to reflect the new implementation changes
to exception.m

tests/general/string_format_test_2.exp2:
tests/general/string_format_test_3.exp2:
tests/hard_coded/no_fully_strict.exp2:
tests/hard_coded/exceptions/test_uncaught_exception.exp2:
tests/tabling/loopcheck.exp2:
	Add throw_impl to the stack trace.


Index: tests/general/string_format_test_2.exp2
===================================================================
RCS file: /home/mercury1/repository/tests/general/string_format_test_2.exp2,v
retrieving revision 1.8
diff -u -r1.8 string_format_test_2.exp2
--- tests/general/string_format_test_2.exp2	2000/08/11 08:24:02	1.8
+++ tests/general/string_format_test_2.exp2	2001/08/30 09:49:56
@@ -1,9 +1,10 @@
 Uncaught exception:
 Software Error: string__format: format string invalid.
 Stack dump follows:
-   0       pred exception:throw/1-0 (erroneous) (exception.m:NNNN)
-   1       pred require:error/1-0 (erroneous) (require.m:NNNN)
-   2       pred string:format/3-0 (det) (string.m:NNNN)
-   3       pred io:format/5-0 (det) (io.m:NNNN)
-   4       pred io:format/4-0 (det) (io.m:NNNN)
-   5       pred string_format_test_2:main/2-0 (det) (string_format_test_2.m:13)
+   0       pred exception:throw_impl/1-0 (erroneous) (exception.m:NNNN)
+   1       pred exception:throw/1-0 (erroneous) (exception.m:NNNN)
+   2       pred require:error/1-0 (erroneous) (require.m:NNNN)
+   3       pred string:format/3-0 (det) (string.m:NNNN)
+   4       pred io:format/5-0 (det) (io.m:NNNN)
+   5       pred io:format/4-0 (det) (io.m:NNNN)
+   6       pred string_format_test_2:main/2-0 (det) (string_format_test_2.m:13)
Index: tests/general/string_format_test_3.exp2
===================================================================
RCS file: /home/mercury1/repository/tests/general/string_format_test_3.exp2,v
retrieving revision 1.8
diff -u -r1.8 string_format_test_3.exp2
--- tests/general/string_format_test_3.exp2	2000/08/11 08:24:02	1.8
+++ tests/general/string_format_test_3.exp2	2001/08/30 09:51:43
@@ -1,11 +1,12 @@
 Uncaught exception:
 Software Error: string__format: invalid conversion specifier.
 Stack dump follows:
-   0       pred exception:throw/1-0 (erroneous) (exception.m:NNNN)
-   1       pred require:error/1-0 (erroneous) (require.m:NNNN)
-   2       pred string:conversion_specification/5-0 (semidet) (string.m:NNNN)
-   3       pred string:format_string/5-0 (det) (string.m:NNNN)
-   4       pred string:format/3-0 (det) (string.m:NNNN)
-   5       pred io:format/5-0 (det) (io.m:NNNN)
-   6       pred io:format/4-0 (det) (io.m:NNNN)
-   7       pred string_format_test_3:main/2-0 (det) (string_format_test_3.m:13)
+   0       pred exception:throw_impl/1-0 (erroneous) (exception.m:NNNN)
+   1       pred exception:throw/1-0 (erroneous) (exception.m:NNNN)
+   2       pred require:error/1-0 (erroneous) (require.m:NNNN)
+   3       pred string:conversion_specification/5-0 (semidet) (string.m:NNNN)
+   4       pred string:format_string/5-0 (det) (string.m:NNNN)
+   5       pred string:format/3-0 (det) (string.m:NNNN)
+   6       pred io:format/5-0 (det) (io.m:NNNN)
+   7       pred io:format/4-0 (det) (io.m:NNNN)
+   8       pred string_format_test_3:main/2-0 (det) (string_format_test_3.m:13)
Index: tests/hard_coded/no_fully_strict.exp2
===================================================================
RCS file: /home/mercury1/repository/tests/hard_coded/no_fully_strict.exp2,v
retrieving revision 1.7
diff -u -r1.7 no_fully_strict.exp2
--- tests/hard_coded/no_fully_strict.exp2	2001/01/07 03:05:46	1.7
+++ tests/hard_coded/no_fully_strict.exp2	2001/08/30 09:52:27
@@ -1,6 +1,7 @@
 Uncaught exception:
 Software Error: oops
 Stack dump follows:
-   0       pred exception:throw/1-0 (erroneous) (exception.m:NNNN)
-   1       pred require:error/1-0 (erroneous) (require.m:NNNN)
-   2       pred no_fully_strict:main/2-0 (det) (no_fully_strict.m:12)
+   0       pred exception:throw_impl/1-0 (erroneous) (exception.m:NNNN)
+   1       pred exception:throw/1-0 (erroneous) (exception.m:NNNN)
+   2       pred require:error/1-0 (erroneous) (require.m:NNNN)
+   3       pred no_fully_strict:main/2-0 (det) (no_fully_strict.m:12)
Index: tests/hard_coded/exceptions/test_uncaught_exception.exp2
===================================================================
RCS file: /home/mercury1/repository/tests/hard_coded/exceptions/test_uncaught_exception.exp2,v
retrieving revision 1.4
diff -u -r1.4 test_uncaught_exception.exp2
--- tests/hard_coded/exceptions/test_uncaught_exception.exp2	2001/01/07 03:05:42	1.4
+++ tests/hard_coded/exceptions/test_uncaught_exception.exp2	2001/08/30 12:37:18
@@ -1,5 +1,6 @@
 Uncaught exception:
 "<exception thrown from main>"
 Stack dump follows:
-   0       pred exception:throw/1-0 (erroneous) (exception.m:NNNN)
-   1       pred test_uncaught_exception:main/2-0 (cc_multi) (test_uncaught_exception.m:25)
+   0       pred exception:throw_impl/1-0 (erroneous) (exception.m:NNNN)
+   1       pred exception:throw/1-0 (erroneous) (exception.m:NNNN)
+   2       pred test_uncaught_exception:main/2-0 (cc_multi) (test_uncaught_exception.m:25)
Index: tests/tabling/loopcheck.exp2
===================================================================
RCS file: /home/mercury1/repository/tests/tabling/loopcheck.exp2,v
retrieving revision 1.5
diff -u -r1.5 loopcheck.exp2
--- tests/tabling/loopcheck.exp2	2001/01/10 05:34:36	1.5
+++ tests/tabling/loopcheck.exp2	2001/08/30 09:53:56
@@ -1,7 +1,8 @@
 Uncaught exception:
 Software Error: detected infinite recursion in pred loopcheck:loop/1
 Stack dump follows:
-   0       pred exception:throw/1-0 (erroneous) (exception.m:NNNN)
-   1       pred require:error/1-0 (erroneous) (require.m:NNNN)
-   2    2* pred loopcheck:loop/1-0 (erroneous) (loopcheck.m:17)
-   4       pred loopcheck:main/2-0 (det) (loopcheck.m:13)
+   0       pred exception:throw_impl/1-0 (erroneous) (exception.m:NNNN)
+   1       pred exception:throw/1-0 (erroneous) (exception.m:NNNN)
+   2       pred require:error/1-0 (erroneous) (require.m:NNNN)
+   3    2* pred loopcheck:loop/1-0 (erroneous) (loopcheck.m:17)
+   5       pred loopcheck:main/2-0 (det) (loopcheck.m:13)


-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list