From 0deeab561c5f94443d8628c2c527b57e9d1a0772 Mon Sep 17 00:00:00 2001 From: Scott Greenlay Date: Fri, 5 Nov 2010 15:11:36 -0400 Subject: [PATCH] Bug 609673: Fix incorrect syntax for ipc plugin tests in testsuite-targets.mk. r=josh a=josh --- testing/testsuite-targets.mk | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/testing/testsuite-targets.mk b/testing/testsuite-targets.mk index 2e30732b43d5..5c455bdb5942 100644 --- a/testing/testsuite-targets.mk +++ b/testing/testsuite-targets.mk @@ -89,17 +89,19 @@ mochitest-a11y: $(CHECK_TEST_ERROR) mochitest-ipcplugins: -#ifdef XP_MACOSX -#if defined(__i386__) +ifeq (Darwin,$(OS_ARCH)) +ifeq (i386,$(TARGET_CPU)) $(RUN_MOCHITEST) --setpref=dom.ipc.plugins.enabled.i386.test.plugin=true --test-path=modules/plugin/test -#elif defined(__x86_64__) +endif +ifeq (x86_64,$(TARGET_CPU)) $(RUN_MOCHITEST) --setpref=dom.ipc.plugins.enabled.x86_64.test.plugin=true --test-path=modules/plugin/test -#elif defined(__ppc__) +endif +ifeq (powerpc,$(TARGET_CPU)) $(RUN_MOCHITEST) --setpref=dom.ipc.plugins.enabled.ppc.test.plugin=true --test-path=modules/plugin/test -#endif -#else +endif +else $(RUN_MOCHITEST) --setpref=dom.ipc.plugins.enabled=true --test-path=modules/plugin/test -#endif +endif $(CHECK_TEST_ERROR) # Usage: |make [EXTRA_TEST_ARGS=...] *test|.