Fixed problem that made error output not visible

This commit is contained in:
adamdunkels 2007-11-27 21:58:07 +00:00
parent 963cc8b31e
commit 0074e4248b
3 changed files with 6 additions and 5 deletions

View File

@ -12,6 +12,6 @@ native: native.platform netsim.platform minimal-net.platform
@cp *.c $* @cp *.c $*
@cp Makefile.platform $*/Makefile @cp Makefile.platform $*/Makefile
@(echo; echo ------------------- $* -------------------; \ @(echo; echo ------------------- $* -------------------; \
cd $* ; $(MAKE) TARGET=$* hello-world >& /dev/null ; \ cd $* ; ($(MAKE) TARGET=$* >& /dev/null) ; \
$(MAKE) TARGET=$* hello-world) >& $*.output || \ $(MAKE) TARGET=$*) >& $*.output || \
echo "$* failed" (echo; echo "$* failed"; exit 1)

View File

@ -1,2 +1,3 @@
all: hello-world
CONTIKI = ../../.. CONTIKI = ../../..
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View File

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: hello-world.c,v 1.1 2007/11/27 20:50:54 adamdunkels Exp $ * $Id: hello-world.c,v 1.2 2007/11/27 21:58:07 adamdunkels Exp $
*/ */
/** /**
@ -50,7 +50,7 @@ PROCESS_THREAD(hello_world_process, ev, data)
PROCESS_BEGIN(); PROCESS_BEGIN();
printf("Hello, world\n"); printf("Hello, world\n");
PROCESS_END(); PROCESS_END();
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/