[aravis/aravis-0-2] tests: add a test case for bug 699228.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis/aravis-0-2] tests: add a test case for bug 699228.
- Date: Mon, 29 Apr 2013 18:58:02 +0000 (UTC)
commit 8d28c242f0a04a005ac4f8e291916db1985ece7f
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Mon Apr 29 20:56:41 2013 +0200
tests: add a test case for bug 699228.
tests/data/genicam.xml | 19 +++++++++++++++++++
tests/genicam.c | 6 ++++++
2 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/tests/data/genicam.xml b/tests/data/genicam.xml
index d229419..9a8ee16 100644
--- a/tests/data/genicam.xml
+++ b/tests/data/genicam.xml
@@ -160,6 +160,25 @@
<Formula>0x1234</Formula>
</IntSwissKnife>
+ <Integer Name="Bug699228_T">
+ <Value>10</Value>
+ </Integer>
+
+ <Integer Name="Bug699228_L">
+ <Value>20</Value>
+ </Integer>
+
+ <Integer Name="Bug699228_FILTER">
+ <Value>5</Value>
+ </Integer>
+
+ <IntSwissKnife Name="IntSwissKnifeBug699228">
+ <pVariable Name="T">Bug699228_T</pVariable>
+ <pVariable Name="L">Bug699228_L</pVariable>
+ <pVariable Name="FILTER">Bug699228_FILTER</pVariable>
+ <Formula>((((L%2) = 0) &&((T%2) = 0) && (FILTER = 0))?0:( (((L%2) = 0)
&&((T%2) = 1) && (FILTER = 1))?0:( (((L%2) = 1) &&((T%2) = 0) && (FILTER =
2))?0:( (((L%2) = 1) &&((T%2) = 1) && (FILTER = 3))?0:( (((L%2) = 0) &&((T%2) = 0)
&& (FILTER = 1))?1:( (((L%2) = 0) &&((T%2) = 1) && (FILTER = 0))?1:( (((L%2) = 1)
&&((T%2) = 0) && (FILTER = 3))?1:( (((L%2) = 1) &&((T%2) = 1) && (FILTER =
2))?1:( (((L%2) = 0) &&((T%2) = 0) && (FILTER = 2))?2:( (((L%2) = 0) &&((T%2) = 1)
&& (FILTER = 3))?2:( (((L%2) = 1) &&((T%2) = 0) && (FILTER = 0))?2:( (((L%2) = 1)
&&((T%2) = 1) && (FILTER = 1))?2:( (((L%2) = 0) &&((T%2) = 0) && (FILTER =
3))?3:( (((L%2) = 0) &&((T%2) = 1) && (FILTER = 2))?3:( (((L%2) = 1) &&((T%2) = 0)
&& (FILTER = 1))?3:( (((L%2) = 1) &
;&((T%2) = 1) && (FILTER = 0))?3:( 4 ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ))</Formula>
+ </IntSwissKnife>
+
<Integer Name="TLParamsLocked">
<ToolTip> Indicates whether a live grab is under way</ToolTip>
<Visibility>Invisible</Visibility>
diff --git a/tests/genicam.c b/tests/genicam.c
index 1843d7f..6df2263 100644
--- a/tests/genicam.c
+++ b/tests/genicam.c
@@ -256,6 +256,12 @@ swiss_knife_test (void)
value = arv_gc_integer_get_value (ARV_GC_INTEGER (node), NULL);
g_assert_cmpint (value, ==, 3);
+ node = arv_gc_get_node (genicam, "IntSwissKnifeBug699228");
+ g_assert (ARV_IS_GC_SWISS_KNIFE (node));
+
+ value = arv_gc_integer_get_value (ARV_GC_INTEGER (node), NULL);
+ g_assert_cmpint (value, ==, 4);
+
g_object_unref (device);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]