Hi!
> static void setup(void);
> static void cleanup(void);
> @@ -127,8 +128,15 @@ int main(int ac, char **av)
>
> static void linkat_verify(const struct test_struct *desc)
> {
> - if (desc->setupfunc != NULL)
> - desc->setupfunc();
> + if (desc->setupfunc != NULL) {
> + if (desc->setupfunc == setup_emlink && emlink_flag == 1) {
> + tst_resm(TCONF, "We can't reach the max links for %s",
> + fstype);
> + return;
> + } else {
> + desc->setupfunc();
> + }
> + }
>
> TEST(ltp_syscall(__NR_linkat, AT_FDCWD, desc->oldfname,
> AT_FDCWD, desc->newfname, desc->flags));
> @@ -204,8 +212,10 @@ static void setup(void)
> fstype, link_max);
> break;
> default:
> - tst_brkm(TBROK | TTERRNO, cleanup,
> - "Unexpected error: ");
> + emlink_flag = 1;
> + tst_resm(TINFO | TTERRNO,
> + "for %s we can't reach the max links",
What errno do we get here instead of the EMLINK?
--
Cyril Hrubis
[email protected]
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list