summaryrefslogtreecommitdiff
path: root/test/Converters.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Converters.c')
-rw-r--r--test/Converters.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/Converters.c b/test/Converters.c
index ef3c37c..7202429 100644
--- a/test/Converters.c
+++ b/test/Converters.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"),
@@ -54,7 +54,8 @@ static void test_XtCvtIntToPixmap(void)
status = XtCvtIntToPixmap(display, &args[0], &num_args,
&fromVal, &toVal, closure_ret);
- g_assert(res == num[0]);
+ g_assert_cmpint(status, ==, True);
+ g_assert_cmpint(res, ==, num[0]);
num[0] = -1;
@@ -69,7 +70,8 @@ static void test_XtCvtIntToPixmap(void)
status = XtCvtIntToPixmap(display, &args[0], &num_args,
&fromVal, &toVal, closure_ret);
- g_assert(res == num[1]);
+ g_assert_cmpint(status, ==, True);
+ g_assert_cmpint(res, ==, num[1]);
}
int main(int argc, char** argv)