summaryrefslogtreecommitdiff
path: root/test/Event.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Event.c')
-rw-r--r--test/Event.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/Event.c b/test/Event.c
index a2f99f9..2eba8d1 100644
--- a/test/Event.c
+++ b/test/Event.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2022, Oracle and/or its affiliates.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -75,11 +75,12 @@ static void test_XtAppMainLoop_34715(void)
alarm(10);
XtAppMainLoop(app);
+ alarm(0); /* cancel alarm */
} else {
- g_assert(XtAppGetExitFlag(app) == TRUE);
- g_assert(0 /* timed out */);
+ g_assertion_message(G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC,
+ "test timed out");
}
- g_assert(XtAppGetExitFlag(app) == TRUE);
+ g_assert_cmpint(XtAppGetExitFlag(app), ==, TRUE);
XtDestroyApplicationContext(app);
}