A question on coredumps in unittests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Loic,

You have written a lot of the unittests, so it seems.

I'm having the issue that under FreeBSD the cores are left behind from
the EXPECT_DAETH tests.
But under CentOS7 no cores are left behind.
And 'ulimit -c unlimited' does not help to get cores

Is there anything particular why this is the case...
Google tests suggest that it is the programs responsability to cleanup
after itself.

And would there be any objections to adding code like:

	ret = RUN_ALL_TESTS();
	if (ret == 0) {
		char core [30];
		strncpy(core, argv[0], 19);
		core[19] = '\0';
		strcat(core, ".core");
		::unlink(core);
		free(core);
	}
	return ret;

to the tests

Thanx,
--WjW
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux