none/tests/ppc32/Makefile
none/tests/ppc64/Makefile
none/tests/x86/Makefile
+ none/tests/linux/Makefile
none/docs/Makefile
exp-omega/Makefile
exp-omega/tests/Makefile
sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
stack_changes.stderr.exp stack_changes.stdout.exp \
stack_changes.stdout.exp2 stack_changes.vgtest \
- stack_switch.stderr.exp stack_switch.vgtest \
strchr.stderr.exp strchr.stderr.exp2 strchr.vgtest \
str_tester.stderr.exp str_tester.vgtest \
supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
realloc1 realloc2 realloc3 \
sh-mem sh-mem-random \
sigaltstack signal2 sigprocmask sigkill \
- stack_changes stack_switch strchr str_tester \
+ stack_changes strchr str_tester \
supp_unknown supp1 supp2 suppfree \
trivialleak \
mismatches new_override metadata \
# Don't allow GCC to inline memcpy(), because then we can't intercept it
overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy
-stack_switch_LDADD = -lpthread
str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow
supp_unknown_SOURCES = badjump.c
supp1_SOURCES = supp.c
EXTRA_DIST = $(noinst_SCRIPTS) \
brk.stderr.exp brk.vgtest \
capget capget.stderr.exp \
+ stack_switch.stderr.exp stack_switch.vgtest \
timerfd-syscall timerfd-syscall.stderr.exp
check_PROGRAMS = \
brk \
capget \
+ stack_switch \
timerfd-syscall
AM_CPPFLAGS = -I$(top_srcdir)/include
$(FLAG_MMMX) $(FLAG_MSSE)
AM_CXXFLAGS = $(AM_CFLAGS)
+stack_switch_LDADD = -lpthread
timerfd_syscall_LDADD = -lrt
#include <stdio.h>
-#if defined(_AIX)
-int main(int argc, char **argv)
-{
- printf("this test is linux-specific\n");
- return 0;
-}
-
-#else
-
#include <sched.h>
#include <stdlib.h>
#include <string.h>
exit( 0 );
}
-
-#endif /* !defined(_AIX) */
include $(top_srcdir)/Makefile.flags.am
SUBDIRS = .
+
+# Arch-specific tests.
if VGCONF_ARCHS_INCLUDE_X86
SUBDIRS += x86
endif
SUBDIRS += ppc64
endif
-DIST_SUBDIRS = x86 amd64 ppc32 ppc64 .
+# OS-specific tests
+if VGCONF_OS_IS_LINUX
+SUBDIRS += linux
+endif
+
+DIST_SUBDIRS = x86 amd64 ppc32 ppc64 linux .
noinst_SCRIPTS = \
filter_cmdline0 filter_linenos \
map_unaligned.stderr.exp map_unaligned.vgtest \
map_unmap.stderr.exp map_unmap.stdout.exp map_unmap.vgtest \
mq.stderr.exp mq.vgtest \
- mremap.stderr.exp mremap.stdout.exp mremap.vgtest \
- mremap2.stderr.exp \
- mremap2.stdout.exp mremap2.stdout.exp2 \
- mremap2.stdout.exp-glibc28-amd64 \
- mremap2.vgtest \
munmap_exe.stderr.exp munmap_exe.vgtest \
nestedfns.stderr.exp nestedfns.stdout.exp nestedfns.vgtest \
pending.stdout.exp pending.stderr.exp pending.vgtest \
fdleak_fcntl fdleak_ipv4 fdleak_open fdleak_pipe \
fdleak_socketpair \
floored fork fucomip manythreads \
- munmap_exe map_unaligned map_unmap mq mremap mremap2 \
+ munmap_exe map_unaligned map_unmap mq \
nestedfns \
pending \
pth_atfork1 pth_blockedsig pth_cancel1 pth_cancel2 pth_cvsimple \
--- /dev/null
+noinst_SCRIPTS = filter_stderr
+
+EXTRA_DIST = $(noinst_SCRIPTS) \
+ mremap.stderr.exp mremap.stdout.exp mremap.vgtest \
+ mremap2.stderr.exp mremap2.stdout.exp mremap2.stdout.exp2 \
+ mremap2.stdout.exp-glibc28-amd64 mremap2.vgtest
+
+check_PROGRAMS = \
+ mremap \
+ mremap2
+
+AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include
+AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI)
+AM_CXXFLAGS = $(AM_CFLAGS)
--- /dev/null
+#! /bin/sh
+
+../filter_stderr
#include <stdio.h>
#include <stdlib.h>
-#if defined(_AIX)
-
-int main ( void )
-{
- printf("This test is Linux-specific.\n");
- return 0;
-}
-
-#else
-
static char *mkmap(unsigned sz)
{
static char *map;
return 0;
}
-
-#endif /* defined(_AIX) */
#include <stdio.h>
-#if defined(_AIX)
-
-int main ( void )
-{
- printf("This test is Linux-specific.\n");
- return 0;
-}
-
-#else
-
#include <sys/mman.h>
#include <assert.h>
#include <stdlib.h>
}
return 0;
}
-
-#endif /* defined(_AIX5) */
--- /dev/null
+prog: mremap2
+stdout_filter: ../../../tests/filter_addresses
+++ /dev/null
-prog: mremap2
-stdout_filter: ../../tests/filter_addresses