public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: alexey.kodanev@oracle.com
Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH v4 2/2] device-drivers: acpi: fixes
Date: Thu, 28 Nov 2013 13:09:23 +0100	[thread overview]
Message-ID: <20131128120923.GD19263@rei.Home> (raw)
In-Reply-To: <52972F1C.3020504@oracle.com>

Hi!
> All right, something like this is OK?
> 
> for (i = 0; i < TST_TOTAL; ++i) {
> 
> 	if (i == ACPI_TRAVERSE) {
> 		res = tc_acpi_str();
> 	} else {
> 		SAFE_FILE_PRINTF(cleanup, dev_tcase, "%d", i);
> 		SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res);
> 		res = res ? TFAIL : TPASS;
> 	}
> 
> 	tst_resm(res, "Test-case '%d'", i);
> }
> 
> And tc_acpi_str will have a loop to read the dev_str file until NULL, 
> because fgets returns a pointer.

Sounds good.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      parent reply	other threads:[~2013-11-28 12:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-18 14:18 [LTP] [PATCH 1/2] device-drivers: acpi: fix file names Alexey Kodanev
2013-11-18 14:18 ` [LTP] [PATCH v4 2/2] device-drivers: acpi: fixes Alexey Kodanev
2013-11-27 18:04   ` chrubis
     [not found]     ` <529725F3.6040002@oracle.com>
2013-11-28 11:39       ` chrubis
     [not found]         ` <52972F1C.3020504@oracle.com>
2013-11-28 12:09           ` chrubis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131128120923.GD19263@rei.Home \
    --to=chrubis@suse.cz \
    --cc=alexey.kodanev@oracle.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=vasily.isaenko@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox