瀏覽代碼

tests: Update Makefile.am, signal skipped tests.

* tests/Makefile.am (INCLUDES): Use the new name 'AM_CPPFLAGS'.
* tests/t-auth.c (main): Properly signal that the test is skipped.
* tests/t-closeallsessions.c (main): Likewise.
* tests/t-findobjects.c (main): Likewise.
* tests/t-getattribute.c (main): Likewise.
* tests/t-getmechanisminfo.c (main): Likewise.
* tests/t-getmechanismlist.c (main): Likewise.
* tests/t-getsessioninfo.c (main): Likewise.
* tests/t-gettokeninfo.c (main): Likewise.
* tests/t-opensession.c (main): Likewise.

Signed-off-by: Justus Winter <justus@g10code.com>
Justus Winter 9 年之前
父節點
當前提交
401461d3bb

+ 1 - 1
tests/Makefile.am

@@ -37,5 +37,5 @@ TESTS = t-link t-getfunctionlist t-initialize t-getinfo t-getslotlist \
 
 noinst_PROGRAMS = $(TESTS)
 
-INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
 LDADD = ../src/scute.la

+ 1 - 1
tests/t-auth.c

@@ -105,7 +105,7 @@ main (int argc, char *argv[])
   if (slots_count == 0)
     {
       printf ("Skipping test because no token is present.\n");
-      return 0;
+      return 77;
     }
 
   printf ("Number of slots with tokens: %lu\n", slots_count);

+ 1 - 1
tests/t-closeallsessions.c

@@ -53,7 +53,7 @@ main (int argc, char *argv[])
   if (slots_count == 0)
     {
       printf ("Skipping test because no token is present.\n");
-      return 0;
+      return 77;
     }
 
   printf ("Number of slots with tokens: %lu\n", slots_count);

+ 1 - 1
tests/t-findobjects.c

@@ -52,7 +52,7 @@ main (int argc, char *argv[])
   if (slots_count == 0)
     {
       printf ("Skipping test because no token is present.\n");
-      return 0;
+      return 77;
     }
 
   printf ("Number of slots with tokens: %lu\n", slots_count);

+ 1 - 1
tests/t-getattribute.c

@@ -549,7 +549,7 @@ main (int argc, char *argv[])
   if (slots_count == 0)
     {
       printf ("Skipping test because no token is present.\n");
-      return 0;
+      return 77;
     }
 
   printf ("Number of slots with tokens: %lu\n", slots_count);

+ 1 - 1
tests/t-getmechanisminfo.c

@@ -52,7 +52,7 @@ main (int argc, char *argv[])
   if (slots_count == 0)
     {
       printf ("Skipping test because no token is present.\n");
-      return 0;
+      return 77;
     }
 
   printf ("Number of slots with tokens: %lu\n", slots_count);

+ 1 - 1
tests/t-getmechanismlist.c

@@ -52,7 +52,7 @@ main (int argc, char *argv[])
   if (slots_count == 0)
     {
       printf ("Skipping test because no token is present.\n");
-      return 0;
+      return 77;
     }
 
   printf ("Number of slots with tokens: %lu\n", slots_count);

+ 1 - 1
tests/t-getsessioninfo.c

@@ -53,7 +53,7 @@ main (int argc, char *argv[])
   if (slots_count == 0)
     {
       printf ("Skipping test because no token is present.\n");
-      return 0;
+      return 77;
     }
 
   printf ("Number of slots with tokens: %lu\n", slots_count);

+ 1 - 1
tests/t-gettokeninfo.c

@@ -51,7 +51,7 @@ main (int argc, char *argv[])
   if (slots_count == 0)
     {
       printf ("Skipping test because no token is present.\n");
-      return 0;
+      return 77;
     }
 
   printf ("Number of slots with tokens: %lu\n", slots_count);

+ 1 - 1
tests/t-opensession.c

@@ -53,7 +53,7 @@ main (int argc, char *argv[])
   if (slots_count == 0)
     {
       printf ("Skipping test because no token is present.\n");
-      return 0;
+      return 77;
     }
 
   printf ("Number of slots with tokens: %lu\n", slots_count);