Closed Bug 557470 Opened 14 years ago Closed 14 years ago

make check in xpcom/tests/ is not portable on Solaris

Categories

(Firefox Build System :: General, defect)

x86
Solaris
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ginnchen+exoracle, Assigned: ginnchen+exoracle)

Details

Attachments

(1 file)

Solaris grep doesn't have "-q" option
Also, it seems Solaris sh doesn't like if $$( grep ...
Attached patch patchSplinter Review
Assignee: nobody → ginn.chen
Status: NEW → ASSIGNED
Attachment #437262 - Flags: review?(ted.mielczarek)
Comment on attachment 437262 [details] [diff] [review]
patch

>diff --git a/xpcom/tests/Makefile.in b/xpcom/tests/Makefile.in
>--- a/xpcom/tests/Makefile.in
>+++ b/xpcom/tests/Makefile.in
>@@ -201,21 +201,21 @@ else
> DIST_PATH = $(DIST)/bin/
> RM_DIST = rm -f
> regOrderDir="$(call getnativepath,$(abs_srcdir)/regorder)";
> DOCOPY=
> endif
> check::
> 	@echo "Running XPIDL tests"
> 	$(XPIDL_COMPILE) -m header $(srcdir)/TestScriptable.idl
>-	@if grep Notscriptable TestScriptable.h | grep -q NS_SCRIPTABLE ; then \
>+	@if grep Notscriptable TestScriptable.h | grep NS_SCRIPTABLE 2>/dev/null ; then \

I think you want "grep NS_SCRIPTABLE >/dev/null 2>&1", right? Otherwise you'll still get the results of the grep to stdout.
Attachment #437262 - Flags: review?(ted.mielczarek) → review+
Right, I should use >/dev/null 2>&1.

Thanks!
http://hg.mozilla.org/mozilla-central/rev/e641320b77b4
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: