[tests] Remove C++ style comments

It makes the IBM XL C Compiler (the 'native' non-free compiler
on the AIX 5.3 and 6.1 platform) stop compiling with syntax error.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=581300

Signed-off-by: Javier Jardón <jjardon@gnome.org>
This commit is contained in:
Alberto Garcia 2010-01-20 18:53:08 +01:00 committed by Javier Jardón
parent 6c3551fedb
commit 7693b0af44
3 changed files with 6 additions and 6 deletions

View File

@ -34,9 +34,9 @@ call_counter_init (gpointer tclass)
for (i = 0; i < NUM_COUNTER_INCREMENTS; i++)
{
int saved_unsafe_call_counter = unsafe_call_counter;
g_atomic_int_add (&mtsafe_call_counter, 1); // real call count update
g_thread_yield(); // let concurrent threads corrupt the unsafe_call_counter state
unsafe_call_counter = 1 + saved_unsafe_call_counter; // non-atomic counter update
g_atomic_int_add (&mtsafe_call_counter, 1); /* real call count update */
g_thread_yield(); /* let concurrent threads corrupt the unsafe_call_counter state */
unsafe_call_counter = 1 + saved_unsafe_call_counter; /* non-atomic counter update */
}
}
@ -139,7 +139,7 @@ static void
prop_tester_init (PropTester* t)
{
if (t->name == NULL)
; // neds unit test framework initialization: g_test_bug ("race initializing properties");
; /* neds unit test framework initialization: g_test_bug ("race initializing properties"); */
}
static void
prop_tester_set_property (GObject *object,

View File

@ -42,7 +42,7 @@ thread_func (void *arg)
{
struct ThreadData *td = arg;
int i;
// g_print ("Thread %d starting\n", td->thread_id);
/* g_print ("Thread %d starting\n", td->thread_id); */
for (i = 0; i < N_ALLOCS; i++)
{
if (rand() % (N_ALLOCS / 20) == 0)

View File

@ -22,7 +22,7 @@
#include <string.h>
#define quick_rand32() (rand_accu = 1664525 * rand_accu + 1013904223, rand_accu)
static guint prime_size = 1021; // 769; // 509
static guint prime_size = 1021; /* 769; 509 */
static gboolean clean_memchunks = FALSE;
static guint number_of_blocks = 10000; /* total number of blocks allocated */
static guint number_of_repetitions = 10000; /* number of alloc+free repetitions */