summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gobject/tests/threadtests.c8
-rw-r--r--tests/slice-concurrent.c2
-rw-r--r--tests/slice-test.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/gobject/tests/threadtests.c b/gobject/tests/threadtests.c
index 757df709b..c3b0171ab 100644
--- a/gobject/tests/threadtests.c
+++ b/gobject/tests/threadtests.c
@@ -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,
diff --git a/tests/slice-concurrent.c b/tests/slice-concurrent.c
index da31eaff2..e059d301a 100644
--- a/tests/slice-concurrent.c
+++ b/tests/slice-concurrent.c
@@ -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)
diff --git a/tests/slice-test.c b/tests/slice-test.c
index 22f252b0a..a118ce675 100644
--- a/tests/slice-test.c
+++ b/tests/slice-test.c
@@ -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 */