public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP]  [PATCH]syscalls/adjtimex01.c: cleanup
@ 2013-04-19  3:32 DAN LI
  2013-04-19  9:34 ` Wanlong Gao
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: DAN LI @ 2013-04-19  3:32 UTC (permalink / raw)
  To: LTP list


cleanup for syscalls/adjtimex01.c

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
---
 testcases/kernel/syscalls/adjtimex/adjtimex01.c | 84 +++++--------------------
 1 file changed, 17 insertions(+), 67 deletions(-)

diff --git a/testcases/kernel/syscalls/adjtimex/adjtimex01.c b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
index 000a979..b995e8e 100644
--- a/testcases/kernel/syscalls/adjtimex/adjtimex01.c
+++ b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
@@ -12,57 +12,18 @@
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
  */
-/**********************************************************
- *
- *    TEST IDENTIFIER	: adjtimex01
- *
- *    EXECUTED BY	: root / superuser
- *
- *    TEST TITLE	: Basic test for adjtimex(2)
- *
- *    TEST CASE TOTAL	: 1
- *
- *    AUTHOR		: Saji Kumar.V.R <saji.kumar@wipro.com>
- *
- *    SIGNALS
- * 	Uses SIGUSR1 to pause before test if option set.
- * 	(See the parse_opts(3) man page).
- *
- *    DESCRIPTION
- *	This is a Phase I test for the adjtimex(2) system call.
- *	It is intended to provide a limited exposure of the system call.
- *
- * 	Setup:
- * 	  Setup signal handling.
- *	  Pause for SIGUSR1 if option specified.
- *	  Save current parameters in tim_save
- *
- * 	Test:
- *	 Loop if the proper options are given.
- * 	  call adjtimex with saved timex structure
- *	  Check return value is between 0 & 5
- *		Test passed
- *	  Otherwise
- *		Test failed
- *
- * 	Cleanup:
- * 	  Print errno log and/or timing stats if options given
- *
- * USAGE:  <for command-line>
- * adjtimex01 [-c n] [-e] [-i n] [-I x] [-P x] [-t] [-h] [-f] [-p]
- *			where,  -c n : Run n copies concurrently.
- *				-e   : Turn on errno logging.
- *				-h   : Show help screen
- *				-f   : Turn off functional testing
- *				-i n : Execute test n times.
- *				-I x : Execute test for x seconds.
- *				-p   : Pause for SIGUSR1 before starting
- *				-P x : Pause for x seconds between iterations.
- *				-t   : Turn on syscall timing.
- *
- ****************************************************************/
+
+/*
+  AUTHOR: Saji Kumar.V.R <saji.kumar@wipro.com>
+  EXECUTED BY: root / superuser
+
+  TEST ITEMS:
+   1. Check to see if adjtimex succeed with mode combination :
+      ADJ_OFFSET | ADJ_FREQUENCY | ADJ_MAXERROR | ADJ_ESTERROR |
+      ADJ_STATUS | ADJ_TIMECONST | ADJ_TICK
+   2. Check to see if adjtimex succeed with mode ADJ_OFFSET_SINGLESHOT
+*/

 #if defined UCLINUX && !__THROW
 /* workaround for libc bug causing failure in sys/timex.h */
@@ -74,11 +35,11 @@
 #include "test.h"
 #include "usctest.h"

-#define SET_MODE ( ADJ_OFFSET | ADJ_FREQUENCY | ADJ_MAXERROR | ADJ_ESTERROR | \
-	ADJ_STATUS | ADJ_TIMECONST | ADJ_TICK )
+#define SET_MODE (ADJ_OFFSET | ADJ_FREQUENCY | ADJ_MAXERROR | ADJ_ESTERROR | \
+	ADJ_STATUS | ADJ_TIMECONST | ADJ_TICK)

-static void setup();
-static void cleanup();
+static void setup(void);
+static void cleanup(void);

 char *TCID = "adjtimex01";
 int TST_TOTAL = 1;
@@ -87,7 +48,6 @@ static struct timex tim_save;

 int main(int ac, char **av)
 {
-
 	int lc;
 	char *msg;

@@ -118,10 +78,8 @@ int main(int ac, char **av)
 	tst_exit();
 }

-/* setup() - performs all ONE TIME setup for this test */
-void setup()
+static void setup(void)
 {
-
 	tst_require_root(NULL);

 	tim_save.modes = 0;
@@ -136,15 +94,7 @@ void setup()
 			 "failed to save current parameters");
 }

-/*
- *cleanup() -  performs all ONE TIME cleanup for this test at
- *		completion or premature exit.
- */
-void cleanup()
+static void cleanup(void)
 {
-	/*
-	 * print timing stats if that option was specified.
-	 * print errno log if that option was specified.
-	 */
 	TEST_CLEANUP;
 }
-- 
1.8.1

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [LTP] [PATCH]syscalls/adjtimex01.c: cleanup
  2013-04-19  3:32 [LTP] [PATCH]syscalls/adjtimex01.c: cleanup DAN LI
@ 2013-04-19  9:34 ` Wanlong Gao
       [not found] ` <5170BBCE.3090503@cn.fujitsu.com>
  2013-04-22  2:17 ` [LTP] [PATCH]syscalls/adjtimex01.c: cleanup Wanlong Gao
  2 siblings, 0 replies; 5+ messages in thread
From: Wanlong Gao @ 2013-04-19  9:34 UTC (permalink / raw)
  To: DAN LI; +Cc: LTP list

On 04/19/2013 11:32 AM, DAN LI wrote:
> 
> cleanup for syscalls/adjtimex01.c
> 
> Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>

Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

> ---
>  testcases/kernel/syscalls/adjtimex/adjtimex01.c | 84 +++++--------------------
>  1 file changed, 17 insertions(+), 67 deletions(-)
> 
> diff --git a/testcases/kernel/syscalls/adjtimex/adjtimex01.c b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> index 000a979..b995e8e 100644
> --- a/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> +++ b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> @@ -12,57 +12,18 @@
>   * You should have received a copy of the GNU General Public License along
>   * with this program; if not, write the Free Software Foundation, Inc.,
>   * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
> - *
>   */
> -/**********************************************************
> - *
> - *    TEST IDENTIFIER	: adjtimex01
> - *
> - *    EXECUTED BY	: root / superuser
> - *
> - *    TEST TITLE	: Basic test for adjtimex(2)
> - *
> - *    TEST CASE TOTAL	: 1
> - *
> - *    AUTHOR		: Saji Kumar.V.R <saji.kumar@wipro.com>
> - *
> - *    SIGNALS
> - * 	Uses SIGUSR1 to pause before test if option set.
> - * 	(See the parse_opts(3) man page).
> - *
> - *    DESCRIPTION
> - *	This is a Phase I test for the adjtimex(2) system call.
> - *	It is intended to provide a limited exposure of the system call.
> - *
> - * 	Setup:
> - * 	  Setup signal handling.
> - *	  Pause for SIGUSR1 if option specified.
> - *	  Save current parameters in tim_save
> - *
> - * 	Test:
> - *	 Loop if the proper options are given.
> - * 	  call adjtimex with saved timex structure
> - *	  Check return value is between 0 & 5
> - *		Test passed
> - *	  Otherwise
> - *		Test failed
> - *
> - * 	Cleanup:
> - * 	  Print errno log and/or timing stats if options given
> - *
> - * USAGE:  <for command-line>
> - * adjtimex01 [-c n] [-e] [-i n] [-I x] [-P x] [-t] [-h] [-f] [-p]
> - *			where,  -c n : Run n copies concurrently.
> - *				-e   : Turn on errno logging.
> - *				-h   : Show help screen
> - *				-f   : Turn off functional testing
> - *				-i n : Execute test n times.
> - *				-I x : Execute test for x seconds.
> - *				-p   : Pause for SIGUSR1 before starting
> - *				-P x : Pause for x seconds between iterations.
> - *				-t   : Turn on syscall timing.
> - *
> - ****************************************************************/
> +
> +/*
> +  AUTHOR: Saji Kumar.V.R <saji.kumar@wipro.com>
> +  EXECUTED BY: root / superuser
> +
> +  TEST ITEMS:
> +   1. Check to see if adjtimex succeed with mode combination :
> +      ADJ_OFFSET | ADJ_FREQUENCY | ADJ_MAXERROR | ADJ_ESTERROR |
> +      ADJ_STATUS | ADJ_TIMECONST | ADJ_TICK
> +   2. Check to see if adjtimex succeed with mode ADJ_OFFSET_SINGLESHOT
> +*/
> 
>  #if defined UCLINUX && !__THROW
>  /* workaround for libc bug causing failure in sys/timex.h */
> @@ -74,11 +35,11 @@
>  #include "test.h"
>  #include "usctest.h"
> 
> -#define SET_MODE ( ADJ_OFFSET | ADJ_FREQUENCY | ADJ_MAXERROR | ADJ_ESTERROR | \
> -	ADJ_STATUS | ADJ_TIMECONST | ADJ_TICK )
> +#define SET_MODE (ADJ_OFFSET | ADJ_FREQUENCY | ADJ_MAXERROR | ADJ_ESTERROR | \
> +	ADJ_STATUS | ADJ_TIMECONST | ADJ_TICK)
> 
> -static void setup();
> -static void cleanup();
> +static void setup(void);
> +static void cleanup(void);
> 
>  char *TCID = "adjtimex01";
>  int TST_TOTAL = 1;
> @@ -87,7 +48,6 @@ static struct timex tim_save;
> 
>  int main(int ac, char **av)
>  {
> -
>  	int lc;
>  	char *msg;
> 
> @@ -118,10 +78,8 @@ int main(int ac, char **av)
>  	tst_exit();
>  }
> 
> -/* setup() - performs all ONE TIME setup for this test */
> -void setup()
> +static void setup(void)
>  {
> -
>  	tst_require_root(NULL);
> 
>  	tim_save.modes = 0;
> @@ -136,15 +94,7 @@ void setup()
>  			 "failed to save current parameters");
>  }
> 
> -/*
> - *cleanup() -  performs all ONE TIME cleanup for this test at
> - *		completion or premature exit.
> - */
> -void cleanup()
> +static void cleanup(void)
>  {
> -	/*
> -	 * print timing stats if that option was specified.
> -	 * print errno log if that option was specified.
> -	 */
>  	TEST_CLEANUP;
>  }
> 


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] [PATCH]syscalls/adjtimex01.c: Test for mode ADJ_OFFSET_SINGLESHOT
       [not found] ` <5170BBCE.3090503@cn.fujitsu.com>
@ 2013-04-19  9:34   ` Wanlong Gao
  2013-04-22  2:15   ` Wanlong Gao
  1 sibling, 0 replies; 5+ messages in thread
From: Wanlong Gao @ 2013-04-19  9:34 UTC (permalink / raw)
  To: DAN LI; +Cc: ltp-list

On 04/19/2013 11:36 AM, DAN LI wrote:
> 
> Additional test for mode ADJ_OFFSET_SINGLESHOT.
> 
> Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>

Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

> ---
>  testcases/kernel/syscalls/adjtimex/adjtimex01.c | 24 ++++++++++++++++++++----
>  1 file changed, 20 insertions(+), 4 deletions(-)
> 
> diff --git a/testcases/kernel/syscalls/adjtimex/adjtimex01.c b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> index b995e8e..d16a5f3 100644
> --- a/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> +++ b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> @@ -42,7 +42,7 @@ static void setup(void);
>  static void cleanup(void);
> 
>  char *TCID = "adjtimex01";
> -int TST_TOTAL = 1;
> +int TST_TOTAL = 2;
> 
>  static struct timex tim_save;
> 
> @@ -66,10 +66,26 @@ int main(int ac, char **av)
>  		TEST(adjtimex(&tim_save));
> 
>  		if ((TEST_RETURN >= 0) && (TEST_RETURN <= 5)) {
> -			tst_resm(TPASS, "adjtimex() returned %ld", TEST_RETURN);
> +			tst_resm(TPASS, "adjtimex() with mode %u returned %ld",
> +				 SET_MODE, TEST_RETURN);
>  		} else {
> -			tst_resm(TFAIL | TTERRNO, "Test Failed, adjtimex()"
> -				 "returned %ld", TEST_RETURN);
> +			tst_resm(TFAIL | TTERRNO,
> +				"Test Failed, adjtimex() with mode %u "
> +				"returned %ld", SET_MODE, TEST_RETURN);
> +		}
> +
> +		/* Call adjtimex(2) */
> +		tim_save.modes = ADJ_OFFSET_SINGLESHOT;
> +
> +		TEST(adjtimex(&tim_save));
> +
> +		if ((TEST_RETURN >= 0) && (TEST_RETURN <= 5)) {
> +			tst_resm(TPASS, "adjtimex() with mode %u returned %ld",
> +				 ADJ_OFFSET_SINGLESHOT, TEST_RETURN);
> +		} else {
> +			tst_resm(TFAIL | TTERRNO,
> +				"Test Failed, adjtimex() with mode %u returned "
> +				"%ld", ADJ_OFFSET_SINGLESHOT, TEST_RETURN);
>  		}
>  	}
> 


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] [PATCH]syscalls/adjtimex01.c: Test for mode ADJ_OFFSET_SINGLESHOT
       [not found] ` <5170BBCE.3090503@cn.fujitsu.com>
  2013-04-19  9:34   ` [LTP] [PATCH]syscalls/adjtimex01.c: Test for mode ADJ_OFFSET_SINGLESHOT Wanlong Gao
@ 2013-04-22  2:15   ` Wanlong Gao
  1 sibling, 0 replies; 5+ messages in thread
From: Wanlong Gao @ 2013-04-22  2:15 UTC (permalink / raw)
  To: DAN LI; +Cc: ltp-list

On 04/19/2013 11:36 AM, DAN LI wrote:
> 
> Additional test for mode ADJ_OFFSET_SINGLESHOT.
> 
> Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>

Applied, thank you.

Wanlong Gao

> ---
>  testcases/kernel/syscalls/adjtimex/adjtimex01.c | 24 ++++++++++++++++++++----
>  1 file changed, 20 insertions(+), 4 deletions(-)
> 
> diff --git a/testcases/kernel/syscalls/adjtimex/adjtimex01.c b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> index b995e8e..d16a5f3 100644
> --- a/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> +++ b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> @@ -42,7 +42,7 @@ static void setup(void);
>  static void cleanup(void);
> 
>  char *TCID = "adjtimex01";
> -int TST_TOTAL = 1;
> +int TST_TOTAL = 2;
> 
>  static struct timex tim_save;
> 
> @@ -66,10 +66,26 @@ int main(int ac, char **av)
>  		TEST(adjtimex(&tim_save));
> 
>  		if ((TEST_RETURN >= 0) && (TEST_RETURN <= 5)) {
> -			tst_resm(TPASS, "adjtimex() returned %ld", TEST_RETURN);
> +			tst_resm(TPASS, "adjtimex() with mode %u returned %ld",
> +				 SET_MODE, TEST_RETURN);
>  		} else {
> -			tst_resm(TFAIL | TTERRNO, "Test Failed, adjtimex()"
> -				 "returned %ld", TEST_RETURN);
> +			tst_resm(TFAIL | TTERRNO,
> +				"Test Failed, adjtimex() with mode %u "
> +				"returned %ld", SET_MODE, TEST_RETURN);
> +		}
> +
> +		/* Call adjtimex(2) */
> +		tim_save.modes = ADJ_OFFSET_SINGLESHOT;
> +
> +		TEST(adjtimex(&tim_save));
> +
> +		if ((TEST_RETURN >= 0) && (TEST_RETURN <= 5)) {
> +			tst_resm(TPASS, "adjtimex() with mode %u returned %ld",
> +				 ADJ_OFFSET_SINGLESHOT, TEST_RETURN);
> +		} else {
> +			tst_resm(TFAIL | TTERRNO,
> +				"Test Failed, adjtimex() with mode %u returned "
> +				"%ld", ADJ_OFFSET_SINGLESHOT, TEST_RETURN);
>  		}
>  	}
> 


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] [PATCH]syscalls/adjtimex01.c: cleanup
  2013-04-19  3:32 [LTP] [PATCH]syscalls/adjtimex01.c: cleanup DAN LI
  2013-04-19  9:34 ` Wanlong Gao
       [not found] ` <5170BBCE.3090503@cn.fujitsu.com>
@ 2013-04-22  2:17 ` Wanlong Gao
  2 siblings, 0 replies; 5+ messages in thread
From: Wanlong Gao @ 2013-04-22  2:17 UTC (permalink / raw)
  To: DAN LI; +Cc: LTP list

On 04/19/2013 11:32 AM, DAN LI wrote:
> 
> cleanup for syscalls/adjtimex01.c
> 
> Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>

Applied, thank you.

Wanlong Gao

> ---
>  testcases/kernel/syscalls/adjtimex/adjtimex01.c | 84 +++++--------------------
>  1 file changed, 17 insertions(+), 67 deletions(-)
> 
> diff --git a/testcases/kernel/syscalls/adjtimex/adjtimex01.c b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> index 000a979..b995e8e 100644
> --- a/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> +++ b/testcases/kernel/syscalls/adjtimex/adjtimex01.c
> @@ -12,57 +12,18 @@
>   * You should have received a copy of the GNU General Public License along
>   * with this program; if not, write the Free Software Foundation, Inc.,
>   * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
> - *
>   */
> -/**********************************************************
> - *
> - *    TEST IDENTIFIER	: adjtimex01
> - *
> - *    EXECUTED BY	: root / superuser
> - *
> - *    TEST TITLE	: Basic test for adjtimex(2)
> - *
> - *    TEST CASE TOTAL	: 1
> - *
> - *    AUTHOR		: Saji Kumar.V.R <saji.kumar@wipro.com>
> - *
> - *    SIGNALS
> - * 	Uses SIGUSR1 to pause before test if option set.
> - * 	(See the parse_opts(3) man page).
> - *
> - *    DESCRIPTION
> - *	This is a Phase I test for the adjtimex(2) system call.
> - *	It is intended to provide a limited exposure of the system call.
> - *
> - * 	Setup:
> - * 	  Setup signal handling.
> - *	  Pause for SIGUSR1 if option specified.
> - *	  Save current parameters in tim_save
> - *
> - * 	Test:
> - *	 Loop if the proper options are given.
> - * 	  call adjtimex with saved timex structure
> - *	  Check return value is between 0 & 5
> - *		Test passed
> - *	  Otherwise
> - *		Test failed
> - *
> - * 	Cleanup:
> - * 	  Print errno log and/or timing stats if options given
> - *
> - * USAGE:  <for command-line>
> - * adjtimex01 [-c n] [-e] [-i n] [-I x] [-P x] [-t] [-h] [-f] [-p]
> - *			where,  -c n : Run n copies concurrently.
> - *				-e   : Turn on errno logging.
> - *				-h   : Show help screen
> - *				-f   : Turn off functional testing
> - *				-i n : Execute test n times.
> - *				-I x : Execute test for x seconds.
> - *				-p   : Pause for SIGUSR1 before starting
> - *				-P x : Pause for x seconds between iterations.
> - *				-t   : Turn on syscall timing.
> - *
> - ****************************************************************/
> +
> +/*
> +  AUTHOR: Saji Kumar.V.R <saji.kumar@wipro.com>
> +  EXECUTED BY: root / superuser
> +
> +  TEST ITEMS:
> +   1. Check to see if adjtimex succeed with mode combination :
> +      ADJ_OFFSET | ADJ_FREQUENCY | ADJ_MAXERROR | ADJ_ESTERROR |
> +      ADJ_STATUS | ADJ_TIMECONST | ADJ_TICK
> +   2. Check to see if adjtimex succeed with mode ADJ_OFFSET_SINGLESHOT
> +*/
> 
>  #if defined UCLINUX && !__THROW
>  /* workaround for libc bug causing failure in sys/timex.h */
> @@ -74,11 +35,11 @@
>  #include "test.h"
>  #include "usctest.h"
> 
> -#define SET_MODE ( ADJ_OFFSET | ADJ_FREQUENCY | ADJ_MAXERROR | ADJ_ESTERROR | \
> -	ADJ_STATUS | ADJ_TIMECONST | ADJ_TICK )
> +#define SET_MODE (ADJ_OFFSET | ADJ_FREQUENCY | ADJ_MAXERROR | ADJ_ESTERROR | \
> +	ADJ_STATUS | ADJ_TIMECONST | ADJ_TICK)
> 
> -static void setup();
> -static void cleanup();
> +static void setup(void);
> +static void cleanup(void);
> 
>  char *TCID = "adjtimex01";
>  int TST_TOTAL = 1;
> @@ -87,7 +48,6 @@ static struct timex tim_save;
> 
>  int main(int ac, char **av)
>  {
> -
>  	int lc;
>  	char *msg;
> 
> @@ -118,10 +78,8 @@ int main(int ac, char **av)
>  	tst_exit();
>  }
> 
> -/* setup() - performs all ONE TIME setup for this test */
> -void setup()
> +static void setup(void)
>  {
> -
>  	tst_require_root(NULL);
> 
>  	tim_save.modes = 0;
> @@ -136,15 +94,7 @@ void setup()
>  			 "failed to save current parameters");
>  }
> 
> -/*
> - *cleanup() -  performs all ONE TIME cleanup for this test at
> - *		completion or premature exit.
> - */
> -void cleanup()
> +static void cleanup(void)
>  {
> -	/*
> -	 * print timing stats if that option was specified.
> -	 * print errno log if that option was specified.
> -	 */
>  	TEST_CLEANUP;
>  }
> 


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-22  2:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19  3:32 [LTP] [PATCH]syscalls/adjtimex01.c: cleanup DAN LI
2013-04-19  9:34 ` Wanlong Gao
     [not found] ` <5170BBCE.3090503@cn.fujitsu.com>
2013-04-19  9:34   ` [LTP] [PATCH]syscalls/adjtimex01.c: Test for mode ADJ_OFFSET_SINGLESHOT Wanlong Gao
2013-04-22  2:15   ` Wanlong Gao
2013-04-22  2:17 ` [LTP] [PATCH]syscalls/adjtimex01.c: cleanup Wanlong Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox