From: Ben Gras Date: Tue, 25 Jun 2013 11:31:40 +0000 (+0000) Subject: test42: skip single step test X-Git-Tag: v3.3.0~900 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F668%2F1;p=minix.git test42: skip single step test Change-Id: If57fc467b0ad28e0e9db27c6dadbe49e59dbc463 --- diff --git a/test/test42.c b/test/test42.c index 3ce0aa534..c61ce0d6a 100644 --- a/test/test42.c +++ b/test/test42.c @@ -14,6 +14,9 @@ int max_error = 4; #include "common.h" +#define my_e(n) { \ + if (child) exit(n); printf("Attach type %d, ", attach); e(n); } + #define _WIFSTOPPED(s) (WIFSTOPPED(s) && !WIFSIGNALED(s) && !WIFEXITED(s)) #define _WIFSIGNALED(s) (!WIFSTOPPED(s) && WIFSIGNALED(s) && !WIFEXITED(s)) @@ -70,7 +73,6 @@ void test_noexec(void); void test_defexec(void); void test_reattach_child(void); void test_reattach(void); -void my_e(int n); static char *executable; static int child = 0, attach; @@ -118,7 +120,10 @@ int a; if (m & 00000001) timed_test(test_wait); if (m & 00000002) timed_test(test_exec); +#if !defined(__arm__) + /* BJG: single-stepping isn't implemented on ARM */ if (m & 00000004) timed_test(test_step); +#endif if (m & 00000010) timed_test(test_sig); if (m & 00000020) timed_test(test_exit); if (m & 00000040) timed_test(test_term); @@ -1498,13 +1503,3 @@ void test_reattach() traced_wait(); } -void my_e(n) -int n; -{ - - if (child) exit(n); - - printf("Attach type %d, ", attach); - e(n); -} -