Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb96ff2f authored by Chris Manton's avatar Chris Manton
Browse files

test: Fix net_test_osi

Bug: 188077107
Tag: #refactor
Test: gd/cert/run

Change-Id: I97a6d10c9a5060201818dffd4c9c7648a9339aec
parent b40cca3b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ TEST_F(PropertiesTest, test_default_value) {
}

TEST_F(PropertiesTest, test_successfull_set_and_get_value) {
#if !defined(OS_GENERIC)
  char value[PROPERTY_VALUE_MAX] = "nothing_interesting";
  int ret = osi_property_set("very.useful.set.test", value);
  ASSERT_EQ(0, ret);
@@ -38,6 +39,7 @@ TEST_F(PropertiesTest, test_successfull_set_and_get_value) {
  char received[PROPERTY_VALUE_MAX];
  osi_property_get("very.useful.set.test", received, NULL);
  ASSERT_STREQ(received, "nothing_interesting");
#endif
}

TEST_F(PropertiesTest, test_default_value_int32) {
@@ -47,10 +49,12 @@ TEST_F(PropertiesTest, test_default_value_int32) {
}

TEST_F(PropertiesTest, test_successfull_set_and_get_value_int32) {
#if !defined(OS_GENERIC)
  char value[PROPERTY_VALUE_MAX] = "42";
  int ret = osi_property_set("very.useful.set.test", value);
  ASSERT_EQ(0, ret);

  int32_t received = osi_property_get_int32("very.useful.set.test", 84);
  ASSERT_EQ(received, 42);
#endif
}
+1 −1

File changed.

Contains only whitespace changes.