projects
/
platform
/
core
/
appfw
/
app2sd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0163d4
)
WIP: getuid()
sandbox/lstelmach/test
author
Łukasz Stelmach
<l.stelmach@samsung.com>
Thu, 13 Apr 2023 16:06:52 +0000
(18:06 +0200)
committer
Łukasz Stelmach
<l.stelmach@samsung.com>
Thu, 13 Apr 2023 16:06:52 +0000
(18:06 +0200)
Change-Id: I29bd686f6305f1a709e89180debc14e0904bb18b
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
unit-tests/lib/test_lib.cc
patch
|
blob
|
history
diff --git
a/unit-tests/lib/test_lib.cc
b/unit-tests/lib/test_lib.cc
index
14a26ae
..
555a35e
100644
(file)
--- a/
unit-tests/lib/test_lib.cc
+++ b/
unit-tests/lib/test_lib.cc
@@
-29,6
+29,10
@@
namespace {
static GVariant* __last_parameters;
static gchar* __last_method_name;
+extern "C" uid_t getuid(void) {
+ return 1;
+}
+
extern "C" GDBusConnection* g_bus_get_sync(GBusType type,
GCancellable* cancellable, GError** error) {
gpointer dummy = g_object_new(G_TYPE_OBJECT, nullptr);