diff tests/tests.h @ 693:16c373df0947

Cleanups
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 21 Jan 2011 15:12:54 +0900
parents 933d098fc75d
children 712a0bb8d3bf
line wrap: on
line diff
--- a/tests/tests.h	Fri Jan 21 11:23:39 2011 +0900
+++ b/tests/tests.h	Fri Jan 21 15:12:54 2011 +0900
@@ -168,13 +168,13 @@
 	}
 }
  
-static inline void test_init(int argc, char * argv[])
+static inline void test_init(int argc, char * argv[], char *fname)
 {
 	memset(fd_g_config, 0, sizeof(struct fd_config));
 	
 	CHECK( 0, fd_libproto_init() );
 	
-	fd_log_threadname(basename(__FILE__));
+	fd_log_threadname(basename(fname));
 	
 	/* Initialize gcrypt and gnutls */
 	(void) gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
@@ -198,6 +198,6 @@
 	
 	return;
 }
-#define INIT_FD()  test_init(argc, argv);
+#define INIT_FD()  test_init(argc, argv, __FILE__);
 
 #endif /* _TESTS_H */
"Welcome to our mercurial repository"