[tickets] [opensaf:tickets] #2140 imm: Attribute count in saImmOmAccessorGet_2_04 testcase is hard coded

2016-11-03 Thread Hung Nguyen
- **status**: review --> fixed
- **Comment**:

default (5.2) [staging:7ce634]
changeset:   8284:7ce634925d90
user:Hung Nguyen 
date:Tue Oct 25 17:51:08 2016 +0700
summary: imm: Avoid hard coding attributes count in saImmOmAccessorGet_2_04 
[#2140]




---

** [tickets:#2140] imm: Attribute count in saImmOmAccessorGet_2_04 testcase is 
hard coded**

**Status:** fixed
**Milestone:** 5.2.FC
**Created:** Tue Oct 25, 2016 10:18 AM UTC by Hung Nguyen
**Last Updated:** Tue Oct 25, 2016 10:54 AM UTC
**Owner:** Hung Nguyen


~~~
void saImmOmAccessorGet_2_04(void)
{
...
assert(cnt == 12);
...
}
~~~

With that number being hard coded, we have to manually update the test case 
whenever we add more attributes to the OpensafImm class.

Solution: use OmClassDescriptionGet() to get the number of config attributes of 
the class.


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets


[tickets] [opensaf:tickets] #2140 imm: Attribute count in saImmOmAccessorGet_2_04 testcase is hard coded

2016-10-25 Thread Hung Nguyen
- **summary**: imm: Attribute count for "immomtest 4 7" testcase is hard coded 
--> imm: Attribute count in saImmOmAccessorGet_2_04 testcase is hard coded
- **status**: accepted --> review



---

** [tickets:#2140] imm: Attribute count in saImmOmAccessorGet_2_04 testcase is 
hard coded**

**Status:** review
**Milestone:** 5.2.FC
**Created:** Tue Oct 25, 2016 10:18 AM UTC by Hung Nguyen
**Last Updated:** Tue Oct 25, 2016 10:18 AM UTC
**Owner:** Hung Nguyen


~~~
void saImmOmAccessorGet_2_04(void)
{
...
assert(cnt == 12);
...
}
~~~

With that number being hard coded, we have to manually update the test case 
whenever we add more attributes to the OpensafImm class.

Solution: use OmClassDescriptionGet() to get the number of config attributes of 
the class.


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik___
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets