[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-list
Subject: Re: [LTP] [PATCH v4 2/2] device-drivers: acpi: fixes
From: chrubis () suse ! cz
Date: 2013-11-28 12:09:23
Message-ID: 20131128120923.GD19263 () rei ! Home
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic