4 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the License);
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 #define METHOD_GET_REVISION "GetRevision"
23 static void get_revision(void)
29 msg = dbus_method_sync_with_reply(DEVICED_BUS_NAME, DEVICED_PATH_SYSNOTI,
30 DEVICED_INTERFACE_SYSNOTI, METHOD_GET_REVISION, NULL, NULL);
32 _E("fail send message");
35 dbus_error_init(&err);
37 ret = dbus_message_get_args(msg, &err, DBUS_TYPE_INT32, &val, DBUS_TYPE_INVALID);
40 _E("no message : [%s:%s]", err.name, err.message);
43 dbus_message_unref(msg);
44 dbus_error_free(&err);
45 _E("%s-%s : %d", DEVICED_INTERFACE_SYSNOTI, METHOD_GET_REVISION, val);
53 static void cpuinfo_init(void *data)
59 static void cpuinfo_exit(void *data)
64 static int cpuinfo_unit(int argc, char **argv)
70 static const struct test_ops cpuinfo_test_ops = {
71 .priority = TEST_PRIORITY_NORMAL,
78 TEST_OPS_REGISTER(&cpuinfo_test_ops)