aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/testlib.c
diff options
context:
space:
mode:
authorRichard Brooksby2012-09-06 17:17:18 +0100
committerRichard Brooksby2012-09-06 17:17:18 +0100
commit858e4ac0ac8ee684f48f0edd9d80ae28b17aee53 (patch)
tree5034519c869b370df2c87394c03f7f30e78945b9 /mps/code/testlib.c
parent383335816d888b5f28fe7b034106dc2056f56620 (diff)
downloademacs-858e4ac0ac8ee684f48f0edd9d80ae28b17aee53.tar.gz
emacs-858e4ac0ac8ee684f48f0edd9d80ae28b17aee53.zip
Partial merge of branch/2012-07-23/cet-transform, excluding cet-specific parts.
Copied from Perforce Change: 179309 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/testlib.c')
-rw-r--r--mps/code/testlib.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mps/code/testlib.c b/mps/code/testlib.c
index d7f4bc60418..06d0641c688 100644
--- a/mps/code/testlib.c
+++ b/mps/code/testlib.c
@@ -32,6 +32,15 @@ struct itimerspec; /* stop complaints from time.h */
32#endif 32#endif
33 33
34 34
35/* fail -- like assert, but (notionally) returns a value, so usable in an expression */
36
37int fail(void)
38{
39 Insist(FALSE);
40 return 1111UL;
41}
42
43
35/* rnd -- a random number generator 44/* rnd -- a random number generator
36 * 45 *
37 * We use the (Multiplicative) Linear Congruential Generator 46 * We use the (Multiplicative) Linear Congruential Generator