From 33debc8286f19a10149e1f0c0fbfe4ed027d172d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 8 Feb 2010 21:09:15 -0800 Subject: [PATCH] hmap-test: Disable ordered insert tests on GCC 4.3. GCC 4.3 miscompiles this test (although it does not seem to miscompile any important code actually in PSPP) so disable it to avoid spurious failures from "make check". --- tests/libpspp/hmap-test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/libpspp/hmap-test.c b/tests/libpspp/hmap-test.c index 64511b7b..f9d963d8 100644 --- a/tests/libpspp/hmap-test.c +++ b/tests/libpspp/hmap-test.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -666,6 +666,10 @@ test_insert_ordered (int max_elems, hash_function *hash) struct hmap hmap; int i; +#if __GNUC__ == 4 && __GNUC_MINOR__ == 3 + return; +#endif /* GCC 4.3 */ + hmap_init (&hmap); elements = xnmalloc (max_elems, sizeof *elements); values = xnmalloc (max_elems, sizeof *values); -- 2.30.2