diff options
| author | Gareth Rees | 2013-03-07 14:32:40 +0000 |
|---|---|---|
| committer | Gareth Rees | 2013-03-07 14:32:40 +0000 |
| commit | 9ecff094ec9301ae807989c9b74c121360df2051 (patch) | |
| tree | 5de1f144fa431aeac2fdf6e3c3af7309b28d146c /mps/code | |
| parent | 13e6529c52df75177da7d658fe746f964965af2c (diff) | |
| download | emacs-9ecff094ec9301ae807989c9b74c121360df2051.tar.gz emacs-9ecff094ec9301ae807989c9b74c121360df2051.zip | |
Add testlib_unused(argc) where necessary, so that test cases build on xci6ll.
Copied from Perforce
Change: 181073
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/arenacv.c | 1 | ||||
| -rw-r--r-- | mps/code/finaltest.c | 1 | ||||
| -rw-r--r-- | mps/code/lockcov.c | 1 | ||||
| -rw-r--r-- | mps/code/locv.c | 1 | ||||
| -rw-r--r-- | mps/code/mv2test.c | 2 | ||||
| -rw-r--r-- | mps/code/poolncv.c | 1 |
6 files changed, 7 insertions, 0 deletions
diff --git a/mps/code/arenacv.c b/mps/code/arenacv.c index df43f9e5d88..5055cf421a6 100644 --- a/mps/code/arenacv.c +++ b/mps/code/arenacv.c | |||
| @@ -405,6 +405,7 @@ static void testSize(Size size) | |||
| 405 | int main(int argc, char *argv[]) | 405 | int main(int argc, char *argv[]) |
| 406 | { | 406 | { |
| 407 | void *block; | 407 | void *block; |
| 408 | testlib_unused(argc); | ||
| 408 | 409 | ||
| 409 | testPageTable((ArenaClass)mps_arena_class_vm(), TEST_ARENA_SIZE); | 410 | testPageTable((ArenaClass)mps_arena_class_vm(), TEST_ARENA_SIZE); |
| 410 | testPageTable((ArenaClass)mps_arena_class_vmnz(), TEST_ARENA_SIZE); | 411 | testPageTable((ArenaClass)mps_arena_class_vmnz(), TEST_ARENA_SIZE); |
diff --git a/mps/code/finaltest.c b/mps/code/finaltest.c index 53cb093cf15..38acb455d0f 100644 --- a/mps/code/finaltest.c +++ b/mps/code/finaltest.c | |||
| @@ -244,6 +244,7 @@ int main(int argc, char *argv[]) | |||
| 244 | mps_arena_t arena; | 244 | mps_arena_t arena; |
| 245 | mps_thr_t thread; | 245 | mps_thr_t thread; |
| 246 | void *r; | 246 | void *r; |
| 247 | testlib_unused(argc); | ||
| 247 | 248 | ||
| 248 | die(mps_arena_create(&arena, mps_arena_class_vm(), testArenaSIZE), | 249 | die(mps_arena_create(&arena, mps_arena_class_vm(), testArenaSIZE), |
| 249 | "arena_create\n"); | 250 | "arena_create\n"); |
diff --git a/mps/code/lockcov.c b/mps/code/lockcov.c index 3011897c066..45aeb1189a0 100644 --- a/mps/code/lockcov.c +++ b/mps/code/lockcov.c | |||
| @@ -13,6 +13,7 @@ int main(int argc, char *argv[]) | |||
| 13 | { | 13 | { |
| 14 | Lock a = malloc(LockSize()); | 14 | Lock a = malloc(LockSize()); |
| 15 | Lock b = malloc(LockSize()); | 15 | Lock b = malloc(LockSize()); |
| 16 | testlib_unused(argc); | ||
| 16 | 17 | ||
| 17 | Insist(a != NULL); | 18 | Insist(a != NULL); |
| 18 | Insist(b != NULL); | 19 | Insist(b != NULL); |
diff --git a/mps/code/locv.c b/mps/code/locv.c index c5ef3d81044..2e906093e3f 100644 --- a/mps/code/locv.c +++ b/mps/code/locv.c | |||
| @@ -47,6 +47,7 @@ int main(int argc, char *argv[]) | |||
| 47 | mps_ap_t ap; | 47 | mps_ap_t ap; |
| 48 | mps_addr_t p; | 48 | mps_addr_t p; |
| 49 | mps_root_t root; | 49 | mps_root_t root; |
| 50 | testlib_unused(argc); | ||
| 50 | 51 | ||
| 51 | locv_fmt.align = sizeof(void *); /* .fmt.align.delayed */ | 52 | locv_fmt.align = sizeof(void *); /* .fmt.align.delayed */ |
| 52 | 53 | ||
diff --git a/mps/code/mv2test.c b/mps/code/mv2test.c index 649719c5de3..b2a466d529e 100644 --- a/mps/code/mv2test.c +++ b/mps/code/mv2test.c | |||
| @@ -317,6 +317,8 @@ static void stress_with_arena_class(mps_arena_class_t aclass) | |||
| 317 | 317 | ||
| 318 | int main(int argc, char *argv[]) | 318 | int main(int argc, char *argv[]) |
| 319 | { | 319 | { |
| 320 | testlib_unused(argc); | ||
| 321 | |||
| 320 | stress_with_arena_class(mps_arena_class_vm()); | 322 | stress_with_arena_class(mps_arena_class_vm()); |
| 321 | stress_with_arena_class(mps_arena_class_vmnz()); | 323 | stress_with_arena_class(mps_arena_class_vmnz()); |
| 322 | 324 | ||
diff --git a/mps/code/poolncv.c b/mps/code/poolncv.c index ec4c3471ae8..2f4be79d562 100644 --- a/mps/code/poolncv.c +++ b/mps/code/poolncv.c | |||
| @@ -35,6 +35,7 @@ static void testit(ArenaClass class, ...) | |||
| 35 | 35 | ||
| 36 | int main(int argc, char *argv[]) | 36 | int main(int argc, char *argv[]) |
| 37 | { | 37 | { |
| 38 | testlib_unused(argc); | ||
| 38 | testit((ArenaClass)mps_arena_class_vm(), (Size)600000); | 39 | testit((ArenaClass)mps_arena_class_vm(), (Size)600000); |
| 39 | printf("%s: Conclusion: Failed to find any defects.\n", argv[0]); | 40 | printf("%s: Conclusion: Failed to find any defects.\n", argv[0]); |
| 40 | return 0; | 41 | return 0; |