1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 15:21:51 -08:00
emacs/mps/test/conerr
Gareth Rees 1d47d8f232 Get the mmqa test system working on windows. in detail:
1. Document how to run it on Windows from a Cygwin shell.
2. Ignore trailing spaces when analyzing test output.
3. Use the directory separator "/" since we're running under Cygwin.
4. No need for cat.exe, strings.exe, or tee.exe (these are supplied by Cygwin).
5. Microsoft Visual C/C++ needs /D_CRT_SECURE_NO_WARNINGS to avoid a warning about scanf.
6. The Microsoft Visual C/C++ linker no longer takes the options /debugtype:both or /debug:full. Replace with /debug.
7. Remove /pdb:none option (we want the PDB so that we can debug the result).
8. windows.h defines an UNALIGNED macro, so need to #undef it.
9. The long int type is 32 bits on 64-bit Windows, so we need size_t instead.
10. The values in the LPEXCEPTION_RECORD structure have type ULONG_PTR.
11. Test cases are expecting access violations to report abort=true, but on Windows they are caught by the exception handler, so report abort=true in this case.
12. mpsw3.h has gone, but we do need mpswin.h.

Fix some of the test cases:
1. Avoid compiler warning about overflowed multiplication in argerr/153.c.
2. In conerr/2.c, conerr/8.c and conerr/13.c, malloc enough space so that the signature check doesn't cause an access violation.
3. In conerr/25.c, allocate an object whose size is aligned to the platform alignment, which is 16 bytes on w3i6mv.
4. In connerr/18.c, conerr/53.c and conerr/54.c, update the location and text of the expected assertions.

Copied from Perforce
 Change: 191564
 ServerID: perforce.ravenbrook.com
2016-04-22 15:00:27 +01:00
..
0.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
1.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
2.c Get the mmqa test system working on windows. in detail: 2016-04-22 15:00:27 +01:00
3.c Testsets/conerr now passes. 2015-06-15 22:59:14 +01:00
4.c Use a regular expression in case the number of built-in pools changes. 2016-03-13 21:49:36 +00:00
5.c Avoid unusued variable warnings from clang 3.4.1. 2016-03-07 18:47:27 +00:00
6.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
7.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
8.c Get the mmqa test system working on windows. in detail: 2016-04-22 15:00:27 +01:00
9.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
10.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
11.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
12.c Use a reference count to discover cases where a format is deleted when a pool is still using it, as suggested by rb <https://info.ravenbrook.com/mail/2014/10/16/13-35-06/0/>. 2014-10-16 22:59:00 +01:00
13.c Get the mmqa test system working on windows. in detail: 2016-04-22 15:00:27 +01:00
14.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
15.c Avoid unusued variable warnings from clang 3.4.1. 2016-03-07 18:47:27 +00:00
16.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
17.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
18.c Get the mmqa test system working on windows. in detail: 2016-04-22 15:00:27 +01:00
19.c Avoid unusued variable warnings from clang 3.4.1. 2016-03-07 18:47:27 +00:00
20.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
21.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
22.c Testsets/conerr now passes. 2015-06-15 22:59:14 +01:00
23.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
24.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
25.c Get the mmqa test system working on windows. in detail: 2016-04-22 15:00:27 +01:00
26.c Testsets/conerr now passes. 2015-06-15 22:59:14 +01:00
27.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
28.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
29.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
30.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
31.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
32.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
33.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
33a.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
34.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
35.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
36.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
37.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
37f.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
38.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
38f.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
39.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
39f.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
40.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
40f.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
41.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
42.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
43.c Avoid unusued variable warnings from clang 3.4.1. 2016-03-07 18:47:27 +00:00
44.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
44a.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
45.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
46.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
47.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
48.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
49.c Long delayed maintenance of test suite: 2013-05-25 10:33:30 +01:00
50.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
51.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
52.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
53.c Get the mmqa test system working on windows. in detail: 2016-04-22 15:00:27 +01:00
54.c Get the mmqa test system working on windows. in detail: 2016-04-22 15:00:27 +01:00
55.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
56.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
57.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
58.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00
59.c Get the mmqa conerr tests working: 2014-10-13 21:34:12 +01:00