~noskcaj/ubuntu/vivid/gnome-keyring/3.15.90

« back to all changes in this revision

Viewing changes to daemon/control/tests/test-control-init.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-14 22:13:02 UTC
  • mfrom: (1.3.1)
  • mto: (80.2.8 experimental) (1.1.77)
  • mto: This revision was merged to the branch mainline in revision 148.
  • Revision ID: package-import@ubuntu.com-20120514221302-0l3gjmqpe6xopond
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#include "control/gkd-control.h"
3
 
#include "testing/testing.h"
4
 
 
5
 
#include <pwd.h>
6
 
#include <stdlib.h>
7
 
#include <unistd.h>
8
 
 
9
 
static int
10
 
run (void)
11
 
{
12
 
        const char *directory;
13
 
        const gchar *env[] = { NULL };
14
 
        gchar **envp, **e;
15
 
 
16
 
        directory = g_getenv ("GNOME_KEYRING_CONTROL");
17
 
        g_return_val_if_fail (directory, 1);
18
 
 
19
 
        envp = gkd_control_initialize (directory, "pkcs11,ssh,secret", env);
20
 
        if (envp == NULL)
21
 
                return 1;
22
 
 
23
 
        for (e = envp; *e; ++e)
24
 
                g_printerr ("%s\n", *e);
25
 
        g_strfreev (envp);
26
 
 
27
 
        return 0;
28
 
}
29
 
 
30
 
#include "testing/testing.c"