[aravis] tests: add a test for entities in formula expression.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] tests: add a test for entities in formula expression.
- Date: Sun, 3 Jun 2012 19:00:13 +0000 (UTC)
commit 53d64f1eb3e857541161d575c174f59bc13a5048
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Sun Jun 3 18:43:23 2012 +0200
tests: add a test for entities in formula expression.
tests/data/genicam.xml | 6 +++++-
tests/genicam.c | 6 ++++++
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/tests/data/genicam.xml b/tests/data/genicam.xml
index 5b35e04..c838c46 100644
--- a/tests/data/genicam.xml
+++ b/tests/data/genicam.xml
@@ -148,10 +148,14 @@
<Endianess>BigEndian</Endianess>
</IntReg>
- <IntSwissKnife Name="IntSwissKnifeTest">
+ <IntSwissKnife Name="IntSwissKnifeTestEntity">
<Formula>0x1234</Formula>
</IntSwissKnife>
+ <IntSwissKnife Name="IntSwissKnifeTest">
+ <Formula>(0x12340000 && 0x00005678)</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 122698f..988692c 100644
--- a/tests/genicam.c
+++ b/tests/genicam.c
@@ -211,6 +211,12 @@ swiss_knife_test (void)
value = arv_gc_integer_get_value (ARV_GC_INTEGER (node), NULL);
g_assert_cmpint (value, ==, 0x1234);
+ node = arv_gc_get_node (genicam, "IntSwissKnifeTestEntity");
+ g_assert (ARV_IS_GC_SWISS_KNIFE (node));
+
+ value = arv_gc_integer_get_value (ARV_GC_INTEGER (node), NULL);
+ g_assert_cmpint (value, ==, 0x12345678);
+
g_object_unref (device);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]