tests2: fix 30_hanoi test and enable it.
This commit is contained in:
parent
0e3d2e0bea
commit
0a51386960
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ void PrintAll()
|
||||||
/* Returns the value moved (not used.) */
|
/* Returns the value moved (not used.) */
|
||||||
int Move(int *source, int *dest)
|
int Move(int *source, int *dest)
|
||||||
{
|
{
|
||||||
int i,j;
|
int i = 0, j = 0;
|
||||||
|
|
||||||
while (i<N && (source[i])==0) i++;
|
while (i<N && (source[i])==0) i++;
|
||||||
while (j<N && (dest[j])==0) j++;
|
while (j<N && (dest[j])==0) j++;
|
||||||
|
|
|
@ -88,7 +88,7 @@ TESTS = \
|
||||||
# 34_array_assignment.test -- array assignment is not in C standard
|
# 34_array_assignment.test -- array assignment is not in C standard
|
||||||
# 46_grep.test -- does not compile even with gcc
|
# 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
|
# some tests do not pass on all platforms, remove them for now
|
||||||
ifeq ($(TARGETOS),Darwin)
|
ifeq ($(TARGETOS),Darwin)
|
||||||
|
|
Loading…
Reference in a new issue