[so] Eroare -inca una
Razvan Deaconescu
razvand at cs.pub.ro
Fri Apr 4 22:50:10 EEST 2008
On Fri, 2008-04-04 at 11:48 -0700, Calin Andrei wrote:
> Ce inseamna eroarea?
>
> Only in test_07_ref: out_04.txt
> Only in test_07_out: out_04_null.txt
>
Salut!
Problema raportata de tine este data de linia 62 din Makefile.checker:
---
razvan at valhalla:~/school/2007-2008/so/teme/tema1$ nl -ba Makefile.checker | grep -A 1 -B 7 '^[ \t]*62'
55 $(TESTS_LIST) :
56 @mkdir $@_out
57 @-cd $@_out; export TEST_DIR=`pwd`; export UNU=1; echo running $@ $(REF_SHELL); \
58 $(REF_SHELL) ../$(INPUTS_DIR)$@.txt
59 @mv $@_out $@_ref; mkdir $@_out
60 @-cd $@_out; export TEST_DIR=`pwd`; export UNU=1; echo running $@; \
61 ../$(TEST_SHELL) < ../$(INPUTS_DIR)$@.txt >> ../outputs.txt
62 @if diff -r -ui $@_out $@_ref; then echo $@ >> passed.txt; echo passed; else echo $@ >> failed.txt; echo failed; fi
63 @echo -e 'done $@\n\n'
---
Eroarea este raportata de diff. Inseamna ca in test_07_ref (adica in
referinta == ceea ce se doreste obtinut) apare linia out_04.txt, iar in
test_07_out (adica in iesirea shell-ului tau == ceea ce obtii tu de
fapt) apare out_04_null.txt. Probabil denumesti gresit un fisier. Daca
ii scoti acel _null din coada ar trebui sa-ti treaca testul.
Razvan
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the so
mailing list