Hi!
> +
> +char *TCID = "acct13";
I've fixned this to be msgct rather than acct (in both testcases).
> +int TST_TOTAL = 1;
> +static void msgctl_verify(void);
> +
> +int main(int argc, char *argv[])
> +{
> + int lc;
> + char *msg;
> +
> + msg = parse_opts(argc, argv, NULL, NULL);
> + if (msg != NULL)
> + tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);
> +
> + setup();
> +
> + for (lc = 0; TEST_LOOPING(lc); lc++) {
> +
> + tst_count = 0;
> +
> + msgctl_verify();
> + }
> +
> + cleanup();
> + tst_exit();
> +}
> +
> +void setup(void)
> +{
> + tst_sig(NOFORK, DEF_HANDLER, cleanup);
> +
> + TEST_PAUSE;
> +}
> +
> +static void msgctl_verify(void)
> +{
> + int msg_q;
> + struct msqid_ds qs_buf;
> +
> + msg_q = msgget(IPC_PRIVATE, MSG_RW);
> + if (msg_q == -1)
> + tst_brkm(TBROK, cleanup, "Can't create message queue");
> +
> + TEST(msgctl(msg_q, IPC_RMID, &qs_buf));
And passed NULL here instead of the msqid_ds buf here, the third
parameter is ignored fro IPC_RMID operation.
Both pushed, thanks.
--
Cyril Hrubis
[email protected]
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list