svn commit: samba r17077 - in branches/SAMBA_3_0/source: script/tests utils

vlendec at samba.org vlendec at samba.org
Sun Jul 16 06:32:35 GMT 2006


Author: vlendec
Date: 2006-07-16 06:32:35 +0000 (Sun, 16 Jul 2006)
New Revision: 17077

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17077

Log:
Activate RPC-SAMBA3-GETUSERNAME in the build farm
Modified:
   branches/SAMBA_3_0/source/script/tests/test_posix_s3.sh
   branches/SAMBA_3_0/source/utils/net.c


Changeset:
Modified: branches/SAMBA_3_0/source/script/tests/test_posix_s3.sh
===================================================================
--- branches/SAMBA_3_0/source/script/tests/test_posix_s3.sh	2006-07-16 00:29:35 UTC (rev 17076)
+++ branches/SAMBA_3_0/source/script/tests/test_posix_s3.sh	2006-07-16 06:32:35 UTC (rev 17077)
@@ -34,7 +34,7 @@
 raw="$raw RAW-SAMBA3HIDE RAW-SAMBA3BADPATH"
 
 rpc="RPC-AUTHCONTEXT RPC-BINDSAMBA3 RPC-NETLOGSAMBA3 RPC-SAMBA3SESSIONKEY"
-rpc="$rpc RPC-SAMBA3-SRVSVC"
+rpc="$rpc RPC-SAMBA3-SRVSVC RPC-SAMBA3-GETUSERNAME"
 
 tests="$base $raw $rpc"
 

Modified: branches/SAMBA_3_0/source/utils/net.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net.c	2006-07-16 00:29:35 UTC (rev 17076)
+++ branches/SAMBA_3_0/source/utils/net.c	2006-07-16 06:32:35 UTC (rev 17077)
@@ -796,9 +796,45 @@
 	return 0;
 }
 
+#include "/data/pth-2.0.7/include/pth.h"
+
+static void *thread_routine(void *arg)
+{
+	d_printf("In thread\n");
+	return arg;
+}
+
+static int net_pthtest(int argc, const char **argv)
+{
+	int res;
+	void *x;
+	pth_t t;
+	pth_attr_t t_attr;
+
+	if ((res = pth_init()) < 0) {
+		d_printf("pth_init failed: %d\n", res);
+		return -1;
+	}
+
+	t_attr = pth_attr_new();
+
+	if (!(t = pth_spawn(t_attr, thread_routine, &res))) {
+		d_printf("pth_spawn failed\n");
+		return -1;
+	}
+
+	if ((res = pth_join(t, &x)) < 0) {
+		d_printf("pth_join failed\n");
+		return -1;
+	}
+
+	return 0;
+}
+
 /* main function table */
 static struct functable net_func[] = {
 	{"RPC", net_rpc},
+	{"PTH", net_pthtest},
 	{"RAP", net_rap},
 	{"ADS", net_ads},
 



More information about the samba-cvs mailing list