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
[email protected]
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list