diff options
| author | Gareth Rees | 2013-03-07 13:13:32 +0000 |
|---|---|---|
| committer | Gareth Rees | 2013-03-07 13:13:32 +0000 |
| commit | 8dc0d72a8d71bffb30e79c0fcbd143c66a68be28 (patch) | |
| tree | bf55f97622c46af70e9221ab8d5abab0babf1727 /mps/code/testlib.h | |
| parent | d28698af08e8cb124061575b62c0bac1971b645c (diff) | |
| download | emacs-8dc0d72a8d71bffb30e79c0fcbd143c66a68be28.tar.gz emacs-8dc0d72a8d71bffb30e79c0fcbd143c66a68be28.zip | |
Improve the usability of the test suite:
1. "make test" now reports the name of the test case before running it, so that when you look back through the test output you can see which test case failed.
2. "make test" now collects the standard output from all the tests to a log file in /tmp, so that this does not clutter the user's terminal, and so that nothing is lost if the output exceeds the terminal's scrollback.
3. Each test case now prints a success message ("Conclusion: Failed to find any defects.") to standard output (not standard error) so that these messages do not clutter up the terminal when running "make test".
4. Each test case now uses its result code (not the printed message) to indicate whether it succeeded or failed.
5. More of the diagnostic messages from the test cases now start by printing argv[0] so that it is easier to tell which test case was running.
Copied from Perforce
Change: 181071
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/testlib.h')
| -rw-r--r-- | mps/code/testlib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mps/code/testlib.h b/mps/code/testlib.h index e3a11c34139..cc4bcce8006 100644 --- a/mps/code/testlib.h +++ b/mps/code/testlib.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* testlib.h: TEST LIBRARY INTERFACE | 1 | /* testlib.h: TEST LIBRARY INTERFACE |
| 2 | * | 2 | * |
| 3 | * $Id$ | 3 | * $Id$ |
| 4 | * Copyright (c) 2001 Ravenbrook Limited. See end of file for license. | 4 | * Copyright (c) 2001-2013 Ravenbrook Limited. See end of file for license. |
| 5 | * Portions copyright (C) 2002 Global Graphics Software. | 5 | * Portions copyright (C) 2002 Global Graphics Software. |
| 6 | * | 6 | * |
| 7 | * .purpose: A library of functions that may be of use to unit tests. | 7 | * .purpose: A library of functions that may be of use to unit tests. |
| @@ -212,7 +212,7 @@ extern mps_addr_t rnd_addr(void); | |||
| 212 | * line argument) and initializes the generator to the same state. | 212 | * line argument) and initializes the generator to the same state. |
| 213 | */ | 213 | */ |
| 214 | 214 | ||
| 215 | extern void randomize(int argc, char **argv); | 215 | extern void randomize(int argc, char *argv[]); |
| 216 | 216 | ||
| 217 | 217 | ||
| 218 | #endif /* testlib_h */ | 218 | #endif /* testlib_h */ |