On Wednesday 25 November 2009 00:17:16 Garrett Cooper wrote:
> --- regen.sh 19 Nov 2009 19:35:15 -0000 1.12
> +++ regen.sh 25 Nov 2009 05:12:13 -0000
> @@ -32,8 +32,13 @@ static void cleanup(void);
> tst_brkm(TCONF, cleanup, "syscall " #NR " not supported on your
> arch");
> \\ errno = ENOSYS; \\
> __ret = -1; \\
> - } else \\
> + } else { \\
> __ret = syscall(NR, ##__VA_ARGS__); \\
> + if (__ret == -1 && errno == ENOSYS) { \\
> + tst_brkm(TCONF, cleanup, "syscall " #NR " not supported
> on your arch");
> \\ + errno = ENOSYS; \\
> + } \\
> + } \\
> __ret; \\
> })
> EOF
i'd prefer this change
--- testcases/kernel/include/regen.sh 9 Oct 2009 17:55:48 -0000 1.11
+++ testcases/kernel/include/regen.sh 25 Nov 2009 05:28:27 -0000
@@ -30,11 +30,12 @@ static void cleanup(void);
#define syscall(NR, ...) ({ \\
int __ret; \\
if (NR == 0) { \\
- tst_brkm(TCONF, cleanup, "syscall " #NR " not supported on your
arch"); \\
errno = ENOSYS; \\
__ret = -1; \\
} else \\
__ret = syscall(NR, ##__VA_ARGS__); \\
+ if (__ret == -1 && errno == ENOSYS) \\
+ tst_brkm(TCONF, cleanup, "syscall " #NR " not supported on your
arch"); \\
__ret; \\
})
EOF
-mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
