diff options
| author | minux <minux.ma@gmail.com> | 2014-04-12 13:37:37 -0400 |
|---|---|---|
| committer | minux <minux.ma@gmail.com> | 2014-04-12 13:37:37 -0400 |
| commit | 0a51386960bcf116cce03fe61e21effd875cd792 (patch) | |
| tree | 00b862057f52467ad30187221a8cc4dfd6ebc366 /tests/tests2 | |
| parent | 0e3d2e0bea9eb90bef98c5bfe751949109bcadd0 (diff) | |
| download | tinycc-0a51386960bcf116cce03fe61e21effd875cd792.tar.gz tinycc-0a51386960bcf116cce03fe61e21effd875cd792.tar.bz2 | |
tests2: fix 30_hanoi test and enable it.
Diffstat (limited to 'tests/tests2')
| -rw-r--r-- | tests/tests2/30_hanoi.c | 2 | ||||
| -rw-r--r-- | tests/tests2/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests2/30_hanoi.c b/tests/tests2/30_hanoi.c index b1a1181..7c0893b 100644 --- a/tests/tests2/30_hanoi.c +++ b/tests/tests2/30_hanoi.c @@ -68,7 +68,7 @@ void PrintAll() /* Returns the value moved (not used.) */ int Move(int *source, int *dest) { - int i,j; + int i = 0, j = 0; while (i<N && (source[i])==0) i++; while (j<N && (dest[j])==0) j++; diff --git a/tests/tests2/Makefile b/tests/tests2/Makefile index a7c8a2f..6e0fa34 100644 --- a/tests/tests2/Makefile +++ b/tests/tests2/Makefile @@ -88,7 +88,7 @@ TESTS = \ # 34_array_assignment.test -- array assignment is not in C standard # 46_grep.test -- does not compile even with gcc -SKIP = 30_hanoi.test 34_array_assignment.test 46_grep.test +SKIP = 34_array_assignment.test 46_grep.test # some tests do not pass on all platforms, remove them for now ifeq ($(TARGETOS),Darwin) |
